Skip to content

Commit 34c337d

Browse files
committed
Revert changes on container_logs_test.go
Signed-off-by: Mustaeen Ahmed <contact@mustaeen.dev>
1 parent 08161d1 commit 34c337d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cmd/nerdctl/container/container_logs_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,14 @@ bar
7373
{
7474
Description: "since 60s",
7575
Command: func(data test.Data, helpers test.Helpers) test.TestableCommand {
76-
since := time.Now().Add(-60 * time.Second).UTC().Format(time.RFC3339Nano)
77-
return helpers.Command("logs", "--since", since, data.Labels().Get("cID"))
76+
return helpers.Command("logs", "--since", "60s", data.Labels().Get("cID"))
7877
},
7978
Expected: test.Expects(0, nil, expect.Equals(expected)),
8079
},
8180
{
8281
Description: "until 60s",
8382
Command: func(data test.Data, helpers test.Helpers) test.TestableCommand {
84-
until := time.Now().Add(-60 * time.Second).UTC().Format(time.RFC3339Nano)
85-
return helpers.Command("logs", "--until", until, data.Labels().Get("cID"))
83+
return helpers.Command("logs", "--until", "60s", data.Labels().Get("cID"))
8684
},
8785
Expected: test.Expects(0, nil, expect.DoesNotContain(expected)),
8886
},

0 commit comments

Comments
 (0)