Skip to content

Commit

Permalink
peer: remove change detector test (#7204)
Browse files Browse the repository at this point in the history
  • Loading branch information
arvindbr8 authored May 7, 2024
1 parent 9d9a96f commit 9d9c1fb
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions peer/peer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit 9d9c1fb

Please sign in to comment.