Skip to content

Commit bfcc794

Browse files
committed
debug flaky test
1 parent c8063d6 commit bfcc794

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

spec/integrations/push_client_spec.rb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,16 @@
168168

169169
client = factory.client
170170
client.block_until_ready
171-
sleep(5)
172-
expect(client.get_treatment('admin', 'bilal_split')).to eq('off')
171+
172+
treatment = 'control'
173+
for i in 1..5 do
174+
p i
175+
sleep(1)
176+
treatment = client.get_treatment('admin', 'bilal_split')
177+
break if treatment != 'control'
178+
end
179+
180+
expect(treatment).to eq('off')
173181
end
174182
end
175183

0 commit comments

Comments
 (0)