peer: remove change detector test (#7204)

This commit is contained in:
Arvind Bright 2024-05-07 09:55:25 -07:00 committed by GitHub
parent 9d9a96f94b
commit 9d9c1fbd60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 8 deletions

View File

@ -93,11 +93,3 @@ func TestPeerStringer(t *testing.T) {
})
}
}
func TestPeerStringerOnContext(t *testing.T) {
ctx := NewContext(context.Background(), &Peer{Addr: &addr{"1.2.3.4:1234"}, AuthInfo: testAuthInfo{credentials.CommonAuthInfo{SecurityLevel: credentials.PrivacyAndIntegrity}}})
want := "context.Background.WithValue(type peer.peerKey, val Peer{Addr: '1.2.3.4:1234', LocalAddr: <nil>, AuthInfo: 'testAuthInfo-3'})"
if got := fmt.Sprintf("%v", ctx); got != want {
t.Fatalf("Unexpected stringer output, got: %q; want: %q", got, want)
}
}