From dac3336aadf377f7e9c84fde3bd4522b18d257f7 Mon Sep 17 00:00:00 2001 From: Bilal Al-Shahwany Date: Wed, 8 Oct 2025 11:04:47 -0700 Subject: [PATCH 1/2] fix iif test-2 --- spec/integrations/push_client_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/integrations/push_client_spec.rb b/spec/integrations/push_client_spec.rb index f62d6d60..ca206024 100644 --- a/spec/integrations/push_client_spec.rb +++ b/spec/integrations/push_client_spec.rb @@ -170,7 +170,7 @@ end treatment = 'control' - for i in 1..5 do + for i in 1..10 do sleep(1) treatment = client.get_treatment('admin', 'bilal_split') break if treatment != 'control' From 2737680f84240cc92fe701b3bdc56b2dcca5b85f Mon Sep 17 00:00:00 2001 From: Bilal Al-Shahwany Date: Wed, 8 Oct 2025 12:28:26 -0700 Subject: [PATCH 2/2] polish tests --- spec/integrations/push_client_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/integrations/push_client_spec.rb b/spec/integrations/push_client_spec.rb index ca206024..689793a5 100644 --- a/spec/integrations/push_client_spec.rb +++ b/spec/integrations/push_client_spec.rb @@ -140,6 +140,7 @@ expect(a_request(:get, 'https://sdk.split.io/api/splitChanges?s=1.3&since=-1&rbSince=-1')).to have_been_made.times(1) expect(a_request(:get, 'https://sdk.split.io/api/splitChanges?s=1.3&since=1585948850109&rbSince=-1')).to have_been_made.times(1) expect(a_request(:get, 'https://sdk.split.io/api/splitChanges?s=1.3&since=1585948850110&rbSince=-1')).to have_been_made.times(0) + client.destroy end end @@ -177,6 +178,7 @@ end expect(treatment).to eq('off') + client.destroy end end @@ -206,6 +208,7 @@ sleep(2) expect(client.get_treatment('admin', 'bilal_split')).to eq('control') expect(client.get_treatment('admin', 'push_test')).to eq('after_fetch') + client.destroy end end @@ -235,6 +238,7 @@ sleep(2) expect(client.get_treatment('admin', 'bilal_split')).to eq('control') expect(client.get_treatment('admin', 'push_test')).to eq('after_fetch') + client.destroy end end @@ -264,6 +268,7 @@ sleep(2) expect(client.get_treatment('admin', 'bilal_split')).to eq('control') expect(client.get_treatment('admin', 'push_test')).to eq('after_fetch') + client.destroy end end end