File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 140140 expect ( a_request ( :get , 'https://sdk.split.io/api/splitChanges?s=1.3&since=-1&rbSince=-1' ) ) . to have_been_made . times ( 1 )
141141 expect ( a_request ( :get , 'https://sdk.split.io/api/splitChanges?s=1.3&since=1585948850109&rbSince=-1' ) ) . to have_been_made . times ( 1 )
142142 expect ( a_request ( :get , 'https://sdk.split.io/api/splitChanges?s=1.3&since=1585948850110&rbSince=-1' ) ) . to have_been_made . times ( 0 )
143+ client . destroy
143144 end
144145 end
145146
177178 end
178179
179180 expect ( treatment ) . to eq ( 'off' )
181+ client . destroy
180182 end
181183 end
182184
206208 sleep ( 2 )
207209 expect ( client . get_treatment ( 'admin' , 'bilal_split' ) ) . to eq ( 'control' )
208210 expect ( client . get_treatment ( 'admin' , 'push_test' ) ) . to eq ( 'after_fetch' )
211+ client . destroy
209212 end
210213 end
211214
235238 sleep ( 2 )
236239 expect ( client . get_treatment ( 'admin' , 'bilal_split' ) ) . to eq ( 'control' )
237240 expect ( client . get_treatment ( 'admin' , 'push_test' ) ) . to eq ( 'after_fetch' )
241+ client . destroy
238242 end
239243 end
240244
264268 sleep ( 2 )
265269 expect ( client . get_treatment ( 'admin' , 'bilal_split' ) ) . to eq ( 'control' )
266270 expect ( client . get_treatment ( 'admin' , 'push_test' ) ) . to eq ( 'after_fetch' )
271+ client . destroy
267272 end
268273 end
269274 end
You can’t perform that action at this time.
0 commit comments