Skip to content

Commit

Permalink
test: Sort by tag instead of time
Browse files Browse the repository at this point in the history
Because these test cases should handle same timestamp.
We should sort with another sortable key such as tag.

Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed Mar 6, 2020
1 parent 1f831ec commit 5328234
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/plugin/test_in_forward.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 5328234

Please sign in to comment.