We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8063d6 commit bfcc794Copy full SHA for bfcc794
1 file changed
spec/integrations/push_client_spec.rb
@@ -168,8 +168,16 @@
168
169
client = factory.client
170
client.block_until_ready
171
- sleep(5)
172
- expect(client.get_treatment('admin', 'bilal_split')).to eq('off')
+
+ 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')
181
end
182
183
0 commit comments