Skip to content

Commit

Permalink
fix pinger test
Browse files Browse the repository at this point in the history
  • Loading branch information
ebirukov committed Jan 15, 2024
1 parent d3be4b2 commit e4eb0c9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions database/test/tarantool/pinger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ func TestConnectFailover(t *testing.T) {

eg := &errgroup.Group{}
// асинхронно запускаем серию параллельных запросов в узлы кластера (отлавливаем тормоза и гонки)
for g := 0; g < 8; g++ {
for g := 0; g < 80; g++ {
g := g
eg.Go(func() error {
for i := 0; i < 1000; i++ {
for i := 0; i < 5000; i++ {
st := time.Now()
// чтобы не тротлить пул
time.Sleep(800 * time.Microsecond)
Expand Down Expand Up @@ -179,6 +179,8 @@ func TestConnectFailover(t *testing.T) {
"arcfg/Timeout": arConnTimeout,
})

fmt.Println("update arconfig")

// подождем пока пингер актуализирует кластер после остановки ноды
time.Sleep(pingInterval + 10*time.Millisecond)

Expand Down

0 comments on commit e4eb0c9

Please sign in to comment.