mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Make checkpoint/restore e2e test less flaky
PiperOrigin-RevId: 300171916
This commit is contained in:
@@ -175,10 +175,8 @@ func TestCheckpointRestore(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
// TODO(b/143498576): Remove after github.com/moby/moby/issues/38963 is fixed.
|
||||
time.Sleep(1 * time.Second)
|
||||
|
||||
if err := d.Restore("test"); err != nil {
|
||||
// TODO(b/143498576): Remove Poll after github.com/moby/moby/issues/38963 is fixed.
|
||||
if err := testutil.Poll(func() error { return d.Restore("test") }, 15*time.Second); err != nil {
|
||||
t.Fatal("docker restore failed:", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user