Исправить замечания ревью: защита rollout от остановленных реплик, чтение серий, время экспериментов по часам Docker, выход сервера при ошибке старта

This commit is contained in:
2026-11-02 18:23:26 +03:00
parent b2973405f3
commit c9d0f73221
8 changed files with 153 additions and 25 deletions
+3 -1
View File
@@ -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)
}
}