diff --git a/cli/debug/debug_test.go b/cli/debug/debug_test.go index 5b6d788a39..72028a8e36 100644 --- a/cli/debug/debug_test.go +++ b/cli/debug/debug_test.go @@ -14,20 +14,20 @@ func TestEnable(t *testing.T) { }() Enable() if os.Getenv("DEBUG") != "1" { - t.Fatalf("expected DEBUG=1, got %s\n", os.Getenv("DEBUG")) + t.Fatalf("expected DEBUG=1, got %s", os.Getenv("DEBUG")) } if logrus.GetLevel() != logrus.DebugLevel { - t.Fatalf("expected log level %v, got %v\n", logrus.DebugLevel, logrus.GetLevel()) + t.Fatalf("expected log level %v, got %v", logrus.DebugLevel, logrus.GetLevel()) } } func TestDisable(t *testing.T) { Disable() if os.Getenv("DEBUG") != "" { - t.Fatalf("expected DEBUG=\"\", got %s\n", os.Getenv("DEBUG")) + t.Fatalf(`expected DEBUG="", got %s`, os.Getenv("DEBUG")) } if logrus.GetLevel() != logrus.InfoLevel { - t.Fatalf("expected log level %v, got %v\n", logrus.InfoLevel, logrus.GetLevel()) + t.Fatalf("expected log level %v, got %v", logrus.InfoLevel, logrus.GetLevel()) } }