Skip to content

Commit

Permalink
Fix test time to use UTC
Browse files Browse the repository at this point in the history
Signed-off-by: apostasie <spam_blackhole@farcloser.world>
  • Loading branch information
apostasie committed Jan 24, 2025
1 parent 300a705 commit 99bd772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/nerdctl/container/container_logs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ bar`
base.Cmd("logs", "-f", containerName).AssertOutContains("foo")

//test timestamps flag
base.Cmd("logs", "-t", containerName).AssertOutContains(time.Now().Format("2006-01-02"))
base.Cmd("logs", "-t", containerName).AssertOutContains(time.Now().UTC().Format("2006-01-02"))

//test tail flag
base.Cmd("logs", "-n", "all", containerName).AssertOutContains(expected)
Expand Down

0 comments on commit 99bd772

Please sign in to comment.