Skip to content

Commit

Permalink
Fix formatting of dates in test
Browse files Browse the repository at this point in the history
Gofmt did not agree with my zero-padded numeric constants.
  • Loading branch information
martinhpedersen committed Apr 13, 2024
1 parent 51e115f commit 9175929
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/forms/builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
"<ProgramVersion>": "Pat v1.0.0 (test)",
"<Callsign>": "LA5NTA",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 9175929

Please sign in to comment.