summaryrefslogtreecommitdiffhomepage
path: root/runsc/specutils/specutils_test.go
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2018-07-31 15:06:36 -0700
committerShentubot <shentubot@google.com>2018-07-31 15:07:53 -0700
commit413bfb39a940455cb116c7d0ca715b2ced78a11c (patch)
treefce9e861ba371e38f9948a83fade166852b2d4c7 /runsc/specutils/specutils_test.go
parent6cad96f38a6de187d2aa3640c492bdfbdbdc589b (diff)
Use backoff package for retry logic
PiperOrigin-RevId: 206834838 Change-Id: I9a44c6fa5f4766a01f86e90810f025cefecdf2d4
Diffstat (limited to 'runsc/specutils/specutils_test.go')
-rw-r--r--runsc/specutils/specutils_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/runsc/specutils/specutils_test.go b/runsc/specutils/specutils_test.go
index 2dc5d90cc..2c4e3e729 100644
--- a/runsc/specutils/specutils_test.go
+++ b/runsc/specutils/specutils_test.go
@@ -94,8 +94,8 @@ func TestWaitForReadyTimeout(t *testing.T) {
err := WaitForReady(cmd.Process.Pid, 50*time.Millisecond, func() (bool, error) {
return false, nil
})
- if !strings.Contains(err.Error(), "timed out") {
- t.Errorf("ProcessWaitReady got: %v, expected: timed out", err)
+ if !strings.Contains(err.Error(), "not running yet") {
+ t.Errorf("ProcessWaitReady got: %v, expected: not running yet", err)
}
cmd.Process.Kill()
}