From b61b7ec8a9469079e83b54ab251b676a6461e147 Mon Sep 17 00:00:00 2001 From: Yuri Shkuro Date: Sat, 24 Feb 2018 22:48:53 -0800 Subject: [PATCH] Test that processes with identical tags are deduped (#708) Signed-off-by: Yuri Shkuro --- model/converter/json/process_hashtable_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/model/converter/json/process_hashtable_test.go b/model/converter/json/process_hashtable_test.go index f26c3d58a01..32744a49415 100644 --- a/model/converter/json/process_hashtable_test.go +++ b/model/converter/json/process_hashtable_test.go @@ -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"),