diff options
author | Ian Lewis <ianlewis@google.com> | 2020-03-10 13:58:27 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-03-10 13:59:49 -0700 |
commit | 0990ef7517236228f575f222ae639d375badec15 (patch) | |
tree | 8cf38226040655cfdc6f54ef900525a1a44dab76 | |
parent | b36de6e7be0542b410901d3cbcd1b3c0fc493cf5 (diff) |
Make checkpoint/restore e2e test less flaky
PiperOrigin-RevId: 300171916
-rw-r--r-- | test/e2e/integration_test.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/e2e/integration_test.go b/test/e2e/integration_test.go index 28064e557..cc4fbbaed 100644 --- a/test/e2e/integration_test.go +++ b/test/e2e/integration_test.go @@ -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) } |