Use refresh, not flush, silly me.

This commit is contained in:
Jordan Sissel 2013-12-23 15:49:57 -08:00
parent 8dd06bab55
commit 830bc8fc33
2 changed files with 4 additions and 4 deletions

View file

@ -38,7 +38,7 @@ describe "outputs/elasticsearch" do
# We try multiple times to allow final agent flushes as well as allowing
# elasticsearch to finish processing everything.
ftw = FTW::Agent.new
ftw.post!("http://localhost:9200/#{index}/_flush")
ftw.post!("http://localhost:9200/#{index}/_refresh")
# Wait until all events are available.
Stud::try(10.times) do
@ -89,7 +89,7 @@ describe "outputs/elasticsearch" do
agent do
ftw = FTW::Agent.new
ftw.post!("http://localhost:9200/#{index}/_flush")
ftw.post!("http://localhost:9200/#{index}/_refresh")
# Wait until all events are available.
Stud::try(10.times) do
@ -136,7 +136,7 @@ describe "outputs/elasticsearch" do
agent do
ftw = FTW::Agent.new
ftw.post!("http://localhost:9200/#{index}/_flush")
ftw.post!("http://localhost:9200/#{index}/_refresh")
# Wait until all events are available.
Stud::try(10.times) do

View file

@ -38,7 +38,7 @@ describe "outputs/elasticsearch_http" do
# We try multiple times to allow final agent flushes as well as allowing
# elasticsearch to finish processing everything.
ftw = FTW::Agent.new
ftw.post!("http://localhost:9200/#{index}/_flush")
ftw.post!("http://localhost:9200/#{index}/_refresh")
# Wait until all events are available.
Stud::try(10.times) do