$ git diff
diff --git a/test/test_out_s3.rb b/test/test_out_s3.rb
index 4e8438c..c7be37f 100644
--- a/test/test_out_s3.rb
+++ b/test/test_out_s3.rb
@@ -187,6 +187,22 @@ class S3OutputTest < Test::Unit::TestCase
assert_equal(expected, d.formatted)
end
+ def test_format_with_format_tsv
+ config = [CONFIG, 'format tsv', 'keys a'].join("\n")
+ d = create_driver(config)
+
+ time = event_time("2011-01-02 13:14:15 UTC")
+ d.run(default_tag: "test") do
+ d.feed(time, {"a"=>1})
+ d.feed(time, {"a"=>2})
+ end
+ expected = [
+ %[1\n],
+ %[2\n]
+ ]
+ assert_equal(expected, d.formatted)
+ end
+
def test_format_with_format_json
config = [CONFIG, 'format json'].join("\n")
d = create_driver(config)
Created
September 12, 2017 02:59
-
-
Save myouju/aca7de53bd6995f2b4df6d8f152c029b to your computer and use it in GitHub Desktop.
Failure: test_format_with_format_tsv(S3OutputTest)
/data/test/test_out_s3.rb:203:in `test_format_with_format_tsv'
200: %[1\n],
201: %[2\n]
202: ]
=> 203: assert_equal(expected, d.formatted)
204: end
205:
206: def test_format_with_format_json
<["1\n", "2\n"]> expected but was
<["1", "2"]>
diff:
? ["1\n", "2\n"]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment