From 993d1e85be402e66b4a1a4005a53859cdfd187c9 Mon Sep 17 00:00:00 2001 From: aligator Date: Sat, 3 Apr 2021 17:40:45 +0200 Subject: [PATCH] Use log.New(os.Stdout, "", 0) instead of log.Default to avoid go version upgrade just because of this. --- gcode/generator_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcode/generator_test.go b/gcode/generator_test.go index 5e05b9e..79bc73f 100644 --- a/gcode/generator_test.go +++ b/gcode/generator_test.go @@ -5,6 +5,7 @@ import ( "github.com/aligator/goslice/gcode" "github.com/aligator/goslice/util/test" "log" + "os" "testing" ) @@ -41,7 +42,7 @@ func TestGCodeGenerator(t *testing.T) { generator := gcode.NewGenerator(&data.Options{ GoSlice: data.GoSliceOptions{ - Logger: log.Default(), + Logger: log.New(os.Stdout, "", 0), }, }, gcode.WithRenderer(&fakeRenderer{t: t, c: rendererCounter})) generator.Init(nil)