From 43ad3096155097ccc5733ea90f7485eab2c5fc4e Mon Sep 17 00:00:00 2001 From: Yuki Yugui Sonoda Date: Thu, 24 Dec 2015 13:34:14 +0900 Subject: [PATCH] Fix broken test Follow github.com/grpc/grpc-go@87d84117a822934abf612ebd562c28e3ea77f65b --- runtime/context_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/context_test.go b/runtime/context_test.go index d004a0f3dfc..7617739d587 100644 --- a/runtime/context_test.go +++ b/runtime/context_test.go @@ -26,10 +26,10 @@ func TestAnnotateContext(t *testing.T) { if !ok || len(md) != 2 { t.Errorf("Expected 2 metadata items in context; got %v", md) } - if got, want := md["Foobar"], []string{"Value1"}; !reflect.DeepEqual(got, want) { - t.Errorf("md[\"Foobar\"] = %v; want %v", got, want) + if got, want := md["foobar"], []string{"Value1"}; !reflect.DeepEqual(got, want) { + t.Errorf(`md["foobar"] = %q; want %q`, got, want) } - if got, want := md["Foo-Baz"], []string{"Value2"}; !reflect.DeepEqual(got, want) { - t.Errorf("md[\"Foo-Baz\"] = %v want %v", got, want) + if got, want := md["foo-baz"], []string{"Value2"}; !reflect.DeepEqual(got, want) { + t.Errorf(`md["foo-baz"] = %q want %q`, got, want) } }