Skip to content

Commit

Permalink
Test that processes with identical tags are deduped (#708)
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <ys@uber.com>
  • Loading branch information
yurishkuro committed Feb 25, 2018
1 parent d59f917 commit b61b7ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions model/converter/json/process_hashtable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ func TestProcessHashtable(t *testing.T) {
ht := &processHashtable{}

p1 := model.NewProcess("s1", []model.KeyValue{
model.String("ip", "1.2.3.4"),
model.String("host", "google.com"),
})
// same process but with different order of tags
p1dup := model.NewProcess("s1", []model.KeyValue{
model.String("host", "google.com"),
model.String("ip", "1.2.3.4"),
})
p2 := model.NewProcess("s2", []model.KeyValue{
model.String("host", "facebook.com"),
Expand Down

0 comments on commit b61b7ec

Please sign in to comment.