Skip to content

Commit f5162fa

Browse files
ryanschkarmi
authored andcommitted
[STORE] Fixed timestamp tests
Until we have a version of rails that uses millisecond precision (>=4.1) we have to wait an entire second to avoid race conditions. Reverts decreased sleep values in 3738850 Closes elastic#407
1 parent 14d636e commit f5162fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elasticsearch-persistence/test/integration/model/model_basic_test.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class ::Person
135135
person = Person.create name: 'John Smith'
136136
updated_at = person.updated_at
137137

138-
sleep 0.25
138+
sleep 1
139139
person.touch
140140

141141
assert person.updated_at > updated_at, [person.updated_at, updated_at].inspect
@@ -147,7 +147,7 @@ class ::Person
147147
should 'update the object timestamp on save' do
148148
person = Person.create name: 'John Smith'
149149
person.admin = true
150-
sleep 0.25
150+
sleep 1
151151
person.save
152152

153153
Person.gateway.refresh_index!

0 commit comments

Comments
 (0)