add wait.PollImmediate() and retool wait tests

This commit is contained in:
Tim Hockin
2015-10-01 17:11:51 -07:00
parent e330b1197e
commit 1973d233e8
3 changed files with 98 additions and 20 deletions

View File

@@ -817,7 +817,7 @@ func TestRollingUpdater_cleanupWithClients(t *testing.T) {
t.Errorf("unexpected error: %v", err)
}
if len(fake.Actions()) != len(test.expected) {
t.Fatalf("%s: unexpected actions: %v, expected %v", test.name, fake.Actions, test.expected)
t.Fatalf("%s: unexpected actions: %v, expected %v", test.name, fake.Actions(), test.expected)
}
for j, action := range fake.Actions() {
if e, a := test.expected[j], action.GetVerb(); e != a {