Исправить замечания ревью: защита rollout от остановленных реплик, чтение серий, время экспериментов по часам Docker, выход сервера при ошибке старта
This commit is contained in:
@@ -98,7 +98,9 @@ func TestOpenLoopDoesNotWaitForResponses(t *testing.T) {
|
||||
if n := fired.Load(); n < 45 || n > 50 {
|
||||
t.Fatalf("fired %d requests in 1 s at 50/s, want about 50", n)
|
||||
}
|
||||
if took := time.Since(start); took > 1500*time.Millisecond {
|
||||
// About 1.2 s; the bound leaves room for -race on a shared CI runner and
|
||||
// still fails a closed loop, which would need 50 x 200 ms = 10 s.
|
||||
if took := time.Since(start); took > 2500*time.Millisecond {
|
||||
t.Fatalf("open loop took %v, want about 1.2 s", took)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user