From a52d116d8145cc84a4d9e27594c05f797f14ba46 Mon Sep 17 00:00:00 2001 From: Martin Hebnes Pedersen Date: Sun, 25 Feb 2024 19:44:27 +0100 Subject: [PATCH] Fix formatting of dates in test Gofmt did not agree with my zero-padded numeric constants. --- internal/forms/builder_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/forms/builder_test.go b/internal/forms/builder_test.go index b81243b9..72a81ba6 100644 --- a/internal/forms/builder_test.go +++ b/internal/forms/builder_test.go @@ -16,7 +16,7 @@ func TestInsertionTagReplacer(t *testing.T) { GPSd: cfg.GPSdConfig{Addr: gpsMockAddr}, }} location = time.FixedZone("UTC+1", 1*60*60) - now = func() time.Time { return time.Date(1988, 3, 21, 00, 00, 00, 00, location).In(time.UTC) } + now = func() time.Time { return time.Date(1988, 3, 21, 0, 0, 0, 0, location).In(time.UTC) } tests := map[string]string{ "": "Pat v1.0.0 (test)", "": "LA5NTA", @@ -53,7 +53,7 @@ func TestInsertionTagReplacer(t *testing.T) { func TestBuildXML(t *testing.T) { location = time.FixedZone("UTC+1", 1*60*60) - now = func() time.Time { return time.Date(1988, 3, 21, 00, 00, 00, 00, location).In(time.UTC) } + now = func() time.Time { return time.Date(1988, 3, 21, 0, 0, 0, 0, location).In(time.UTC) } b := messageBuilder{ FormsMgr: &Manager{config: Config{ MyCall: "LA5NTA",