diff --git a/test/plugin/test_in_forward.rb b/test/plugin/test_in_forward.rb index 6723bdee56..a6386f0f04 100644 --- a/test/plugin/test_in_forward.rb +++ b/test/plugin/test_in_forward.rb @@ -218,7 +218,7 @@ def create_driver(conf=CONFIG) } end - assert_equal(records, d.events.sort_by {|a| a[1] }) + assert_equal(records, d.events.sort_by {|a| a[0] }) end test 'json_with_newline' do @@ -237,7 +237,7 @@ def create_driver(conf=CONFIG) } end - assert_equal(records, d.events.sort_by {|a| a[1] }) + assert_equal(records, d.events.sort_by {|a| a[0] }) end end