From 9cfd0c9444a93048fd86b603d5d6f910e38ecf84 Mon Sep 17 00:00:00 2001 From: Malaber Date: Tue, 14 Apr 2026 20:27:50 +0200 Subject: [PATCH] Harden follower sync wait timeout --- spec/e2e/http/tournament_follow_sync_spec.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/spec/e2e/http/tournament_follow_sync_spec.rb b/spec/e2e/http/tournament_follow_sync_spec.rb index bcfb470..736b7c5 100644 --- a/spec/e2e/http/tournament_follow_sync_spec.rb +++ b/spec/e2e/http/tournament_follow_sync_spec.rb @@ -213,7 +213,7 @@ RSpec.describe 'Tournament follower sync HTTP E2E' do end end - def wait_for_tournament_sync!(source_tournament_id:, follower_tournament_id:, timeout: 30) + def wait_for_tournament_sync!(source_tournament_id:, follower_tournament_id:, timeout: 90) deadline = Time.now + timeout loop do @@ -221,7 +221,13 @@ RSpec.describe 'Tournament follower sync HTTP E2E' do follower = fetch_tournament(client: follower_anonymous_client, tournament_id: follower_tournament_id) return follower if tournament_signature(source) == tournament_signature(follower) - raise "Follower did not catch up within #{timeout}s" if Time.now >= deadline + if Time.now >= deadline + raise <<~ERROR + Follower did not catch up within #{timeout}s + source_signature=#{tournament_signature(source).inspect} + follower_signature=#{tournament_signature(follower).inspect} + ERROR + end sleep 0.5 end