Skip to content

Commit 061e37c

Browse files
fix broken tests on different ruby versions
1 parent a94c4e6 commit 061e37c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/project_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ class InvalidErrorHandler; end
502502

503503
expect(project_instance.activate('test_experiment_with_audience', 'test_user', 'browser_type' => 'firefox'))
504504
.to eq('variation_with_audience')
505+
sleep 0.1
505506
expect(project_instance.event_dispatcher).to have_received(:dispatch_event).with(Optimizely::Event.new(:post, impression_log_url, params, post_headers)).once
506507
end
507508

0 commit comments

Comments
 (0)