From 71510d4491637e2da385842c37230df826d7e237 Mon Sep 17 00:00:00 2001 From: Rob Bavey Date: Wed, 8 Jun 2022 13:41:18 -0400 Subject: [PATCH 1/2] Remove timezone field from time_array in spec Specifying a timezone in Time#utc in jruby-9.3.4.0 raises a `no implicit conversion of String into Integer` error. AFAICT, this timezone serves no purpose in the running of the test, so this commit removes it --- spec/bson/logstash_timestamp_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/bson/logstash_timestamp_spec.rb b/spec/bson/logstash_timestamp_spec.rb index 4418922..a4ffb4c 100644 --- a/spec/bson/logstash_timestamp_spec.rb +++ b/spec/bson/logstash_timestamp_spec.rb @@ -2,7 +2,7 @@ require_relative "../spec_helper" describe ::LogStash::Timestamp do - let(:time_array) { [1918,11,11,11,0,0, "+00:00"] } + let(:time_array) { [1918,11,11,11,0,0] } let(:a_time) { Time.utc(*time_array) } let(:bson_time) { Time.utc(*time_array).to_bson } From 980f11fda7f977b8f8ba7dfcfd0d5134b7fa330c Mon Sep 17 00:00:00 2001 From: Rob Bavey Date: Wed, 8 Jun 2022 14:14:59 -0400 Subject: [PATCH 2/2] Add Changelog entry --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8aaf0bb..7e03cde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## #unreleased + - Fix: Fix failing test spec on jruby-9.3.4.0 [#81](https://github.com/logstash-plugins/logstash-output-mongodb/pull/81) + ## 3.1.7 - Fix "wrong number of arguments" error when shipping events to MongoDB (fixes #60, #64, #65) [#66](https://github.com/logstash-plugins/logstash-output-mongodb/pull/66)