Skip to content

Commit

Permalink
update tests - try DeepEqual comparison for metadata background with …
Browse files Browse the repository at this point in the history
…context
  • Loading branch information
Mike Atlas committed Jun 3, 2016
1 parent 4535c35 commit 2732962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func TestAnnotateContext(t *testing.T) {
request.Header.Add("Some-Irrelevant-Header", "some value")
annotated := runtime.AnnotateContext(ctx, request)
ctx = metadata.NewContext(ctx, metadata.Pairs("RemoteAddr", "127.0.0.1"))
if annotated != ctx {
if !reflect.DeepEqual(annotated, ctx) {
t.Errorf("AnnotateContext(ctx, request) = %v; want %v", annotated, ctx)
}

Expand Down

0 comments on commit 2732962

Please sign in to comment.