Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sgreben committed Jul 11, 2020
1 parent de7ce78 commit 0357004
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions time_format_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ func TestTimeFormatISO8601(t *testing.T) {
var fs flag.FlagSet
fs.Var(&fv, "time-format", "")

err := fs.Parse([]string{"-time-format", "ISO8601"})
err := fs.Parse([]string{"-time-format", "RFC3339"})
if err != nil {
t.Error(err)
}
referenceTime := time.Unix(1594467527, 0)
expected := "2020-07-11T13:38:47+02:00"
expected := referenceTime.Format(time.RFC3339)
actual := referenceTime.Format(fv.Value)
if actual != expected {
t.Errorf("actual %q != %q (expected)", actual, expected)
Expand Down

0 comments on commit 0357004

Please sign in to comment.