Skip to content

Commit 9bfdc35

Browse files
authored
Merge pull request #1055 from kenhys/fix-ruby34
test: fix hash expression incompatibility for Ruby 3.4
2 parents 0d24bb6 + 8c1d664 commit 9bfdc35

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/plugin/test_out_elasticsearch.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5005,7 +5005,8 @@ def test_writes_to_extracted_host_with_placeholder_replaced_in_exception_message
50055005
driver.feed(time.to_i, sample_record.merge({"pipeline_id" => pipeline_id}))
50065006
end
50075007
}
5008-
assert_equal("could not push logs to Elasticsearch cluster ({:host=>\"myhost-1\", :port=>9200, :scheme=>\"http\"}): [503] ", exception.message)
5008+
params = {:host=> "myhost-1", :port=>9200, :scheme=>"http"}
5009+
assert_equal("could not push logs to Elasticsearch cluster (#{params}): [503] ", exception.message)
50095010
end
50105011
end
50115012

0 commit comments

Comments
 (0)