Skip to content

Commit 1bc71a5

Browse files
author
Bilal Al
committed
fixed spec
1 parent b7ecdd1 commit 1bc71a5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

spec/engine/matchers/semver_matchers_integration_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
it 'validates the treatment is the default treatment for incorrect attributes hash and nil' do
6969
expect(subject.get_treatment(user, 'semver_equalto')).to eq 'off'
7070
expect(subject.get_treatment(user, 'semver_equalto', {:version => "1.22.10"})).to eq 'off'
71+
sleep 0.2
7172
subject.destroy()
7273
end
7374
end
@@ -90,6 +91,7 @@
9091
it 'validates the treatment is the default treatment for incorrect attributes hash and nil' do
9192
expect(subject.get_treatment(user, 'semver_greater_or_equalto')).to eq 'off'
9293
expect(subject.get_treatment(user, 'semver_greater_or_equalto', {:version => "1.22.8"})).to eq 'off'
94+
sleep 0.2
9395
subject.destroy()
9496
end
9597
end
@@ -112,6 +114,7 @@
112114
it 'validates the treatment is the default treatment for incorrect attributes hash and nil' do
113115
expect(subject.get_treatment(user, 'semver_less_or_equalto')).to eq 'off'
114116
expect(subject.get_treatment(user, 'semver_less_or_equalto', {:version => "1.22.10"})).to eq 'off'
117+
sleep 0.2
115118
subject.destroy()
116119
end
117120
end
@@ -134,6 +137,7 @@
134137
it 'validates the treatment is the default treatment for incorrect attributes hash and nil' do
135138
expect(subject.get_treatment(user, 'semver_inlist')).to eq 'off'
136139
expect(subject.get_treatment(user, 'semver_inlist', {:version => "1.22.10"})).to eq 'off'
140+
sleep 0.2
137141
subject.destroy()
138142
end
139143
end
@@ -157,6 +161,7 @@
157161
expect(subject.get_treatment(user, 'semver_between')).to eq 'off'
158162
expect(subject.get_treatment(user, 'semver_between', {:version => "1.22.9-rc1"})).to eq 'off'
159163
expect(subject.get_treatment(user, 'semver_between', {:version => "2.1.1"})).to eq 'off'
164+
sleep 0.2
160165
subject.destroy()
161166
end
162167
end

0 commit comments

Comments
 (0)