Skip to content

Commit 9d9c1fb

Browse files
authored
peer: remove change detector test (#7204)
1 parent 9d9a96f commit 9d9c1fb

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

peer/peer_test.go

-8
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,3 @@ func TestPeerStringer(t *testing.T) {
9393
})
9494
}
9595
}
96-
97-
func TestPeerStringerOnContext(t *testing.T) {
98-
ctx := NewContext(context.Background(), &Peer{Addr: &addr{"1.2.3.4:1234"}, AuthInfo: testAuthInfo{credentials.CommonAuthInfo{SecurityLevel: credentials.PrivacyAndIntegrity}}})
99-
want := "context.Background.WithValue(type peer.peerKey, val Peer{Addr: '1.2.3.4:1234', LocalAddr: <nil>, AuthInfo: 'testAuthInfo-3'})"
100-
if got := fmt.Sprintf("%v", ctx); got != want {
101-
t.Fatalf("Unexpected stringer output, got: %q; want: %q", got, want)
102-
}
103-
}

0 commit comments

Comments
 (0)