diff --git a/query/query_test.go b/query/query_test.go index 50e4373af639314a1dad8ccf7f3ae300e3e3b5f8..2288e2c3d865f15ddb0353cce6b543922656fab1 100644 --- a/query/query_test.go +++ b/query/query_test.go @@ -378,9 +378,9 @@ func TestToProtocolBuffer(t *testing.T) { t.Errorf("Expected values map to contain 3 properties, Got: %v", len(gr.Properties)) } - if string(gr.Properties["name"].Str) != "Michonne" { + if gr.Properties["name"].Str != "Michonne" { t.Errorf("Expected property name to have value Michonne, Got: %v", - string(gr.Properties["name"].Str)) + gr.Properties["name"].Str) } if len(gr.Children) != 10 { t.Errorf("Expected 10 children, Got: %v", len(gr.Children)) @@ -397,9 +397,9 @@ func TestToProtocolBuffer(t *testing.T) { t.Errorf("Expected values map to contain 1 property, Got: %v", len(child.Properties)) } - if string(child.Properties["name"].Str) != "Rick Grimes" { + if child.Properties["name"].Str != "Rick Grimes" { t.Errorf("Expected property name to have value Rick Grimes, Got: %v", - string(child.Properties["name"].Str)) + child.Properties["name"].Str) } if len(child.Children) != 0 { t.Errorf("Expected 0 children, Got: %v", len(child.Children))