mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-09 03:28:29 +00:00
Sometimes we run tests on overloaded machines. (#1765)
This commit is contained in:
parent
01a2906518
commit
687f8d0857
|
@ -488,7 +488,7 @@ func TestRetryTimeDuration(t *testing.T) {
|
||||||
Code: 500,
|
Code: 500,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
retryTimeDuration(f, time.Duration(500)*time.Millisecond)
|
retryTimeDuration(f, time.Duration(1000)*time.Millisecond)
|
||||||
if i < 2 {
|
if i < 2 {
|
||||||
t.Errorf("expected error function to be called at least twice, but was called %d times", i)
|
t.Errorf("expected error function to be called at least twice, but was called %d times", i)
|
||||||
}
|
}
|
||||||
|
@ -503,7 +503,7 @@ func TestRetryTimeDuration_wrapped(t *testing.T) {
|
||||||
}
|
}
|
||||||
return errwrap.Wrapf("nested error: {{err}}", err)
|
return errwrap.Wrapf("nested error: {{err}}", err)
|
||||||
}
|
}
|
||||||
retryTimeDuration(f, time.Duration(500)*time.Millisecond)
|
retryTimeDuration(f, time.Duration(1000)*time.Millisecond)
|
||||||
if i < 2 {
|
if i < 2 {
|
||||||
t.Errorf("expected error function to be called at least twice, but was called %d times", i)
|
t.Errorf("expected error function to be called at least twice, but was called %d times", i)
|
||||||
}
|
}
|
||||||
|
@ -517,7 +517,7 @@ func TestRetryTimeDuration_noretry(t *testing.T) {
|
||||||
Code: 400,
|
Code: 400,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
retryTimeDuration(f, time.Duration(500)*time.Millisecond)
|
retryTimeDuration(f, time.Duration(1000)*time.Millisecond)
|
||||||
if i != 1 {
|
if i != 1 {
|
||||||
t.Errorf("expected error function to be called exactly once, but was called %d times", i)
|
t.Errorf("expected error function to be called exactly once, but was called %d times", i)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user