mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
Use refresh, not flush, silly me.
This commit is contained in:
parent
8dd06bab55
commit
830bc8fc33
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue