Skip to content

Commit e658602

Browse files
committed
Increase timeout for windows on TestRunRmTime
Signed-off-by: apostasie <[email protected]>
1 parent 2e81f21 commit e658602

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmd/nerdctl/container/container_run_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,11 @@ func TestRunRmTime(t *testing.T) {
600600
base.Cmd("run", "--rm", testutil.CommonImage, "true").AssertOK()
601601
t1 := time.Now()
602602
took := t1.Sub(t0)
603-
const deadline = 3 * time.Second
603+
var deadline = 3 * time.Second
604+
// FIXME: Investigate? it appears that since the move to containerd 2 on Windows, this is taking longer.
605+
if runtime.GOOS == "windows" {
606+
deadline = 10 * time.Second
607+
}
604608
if took > deadline {
605609
t.Fatalf("expected to have completed in %v, took %v", deadline, took)
606610
}

0 commit comments

Comments
 (0)