Skip to content

Commit e08b517

Browse files
author
Moncef Belyamani
committed
Reload the location for Travis
There is one test that depends on Elasticsearch updating its index, which sometimes doesn't happen fast enough. Maybe introducing this location reload will help.
1 parent eeac5f2 commit e08b517

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/api/locations_spec.rb

+1
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,7 @@
592592
put "api/locations/#{@loc.id}",
593593
{ :name => "changeme" },
594594
{ 'HTTP_X_API_TOKEN' => @token }
595+
@loc.reload
595596
sleep 1 # Elasticsearch needs time to update the index
596597
get "/api/search?keyword=changeme"
597598
json.first["name"].should == "changeme"

0 commit comments

Comments
 (0)