Fix go 1.7 vet

This commit is contained in:
Menghan Li
2016-08-17 17:21:51 -07:00
parent 8a81ddda27
commit e97a524cf1

View File

@ -39,7 +39,6 @@ import (
"io" "io"
"math" "math"
"net" "net"
"reflect"
"strconv" "strconv"
"sync" "sync"
"testing" "testing"
@ -754,11 +753,11 @@ func TestEncodingRequiredStatus(t *testing.T) {
} }
func TestStreamContext(t *testing.T) { func TestStreamContext(t *testing.T) {
expectedStream := Stream{} expectedStream := &Stream{}
ctx := newContextWithStream(context.Background(), &expectedStream) ctx := newContextWithStream(context.Background(), expectedStream)
s, ok := StreamFromContext(ctx) s, ok := StreamFromContext(ctx)
if !ok || !reflect.DeepEqual(expectedStream, *s) { if !ok || expectedStream != s {
t.Fatalf("GetStreamFromContext(%v) = %v, %t, want: %v, true", ctx, *s, ok, expectedStream) t.Fatalf("GetStreamFromContext(%v) = %v, %t, want: %v, true", ctx, s, ok, expectedStream)
} }
} }