Skip to content

Commit 2732962

Browse files
author
Mike Atlas
committed
update tests - try DeepEqual comparison for metadata background with context
1 parent 4535c35 commit 2732962

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/context_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func TestAnnotateContext(t *testing.T) {
2222
request.Header.Add("Some-Irrelevant-Header", "some value")
2323
annotated := runtime.AnnotateContext(ctx, request)
2424
ctx = metadata.NewContext(ctx, metadata.Pairs("RemoteAddr", "127.0.0.1"))
25-
if annotated != ctx {
25+
if !reflect.DeepEqual(annotated, ctx) {
2626
t.Errorf("AnnotateContext(ctx, request) = %v; want %v", annotated, ctx)
2727
}
2828

0 commit comments

Comments
 (0)