Skip to content

Commit

Permalink
Merge pull request #110 from libp2p/fix-key-comparison
Browse files Browse the repository at this point in the history
fix key comparisons in tests
  • Loading branch information
marten-seemann committed Feb 19, 2020
2 parents 572bfce + 9cdba6a commit f513f36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions p2p/transport/quic/conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ var _ = Describe("Connection", func() {
Expect(conn.LocalPeer()).To(Equal(clientID))
Expect(conn.LocalPrivateKey()).To(Equal(clientKey))
Expect(conn.RemotePeer()).To(Equal(serverID))
Expect(conn.RemotePublicKey()).To(Equal(serverKey.GetPublic()))
Expect(conn.RemotePublicKey().Equals(serverKey.GetPublic())).To(BeTrue())
Expect(serverConn.LocalPeer()).To(Equal(serverID))
Expect(serverConn.LocalPrivateKey()).To(Equal(serverKey))
Expect(serverConn.RemotePeer()).To(Equal(clientID))
Expect(serverConn.RemotePublicKey()).To(Equal(clientKey.GetPublic()))
Expect(serverConn.RemotePublicKey().Equals(clientKey.GetPublic())).To(BeTrue())
})

It("handshakes on IPv6", func() {
Expand All @@ -102,11 +102,11 @@ var _ = Describe("Connection", func() {
Expect(conn.LocalPeer()).To(Equal(clientID))
Expect(conn.LocalPrivateKey()).To(Equal(clientKey))
Expect(conn.RemotePeer()).To(Equal(serverID))
Expect(conn.RemotePublicKey()).To(Equal(serverKey.GetPublic()))
Expect(conn.RemotePublicKey().Equals(serverKey.GetPublic())).To(BeTrue())
Expect(serverConn.LocalPeer()).To(Equal(serverID))
Expect(serverConn.LocalPrivateKey()).To(Equal(serverKey))
Expect(serverConn.RemotePeer()).To(Equal(clientID))
Expect(serverConn.RemotePublicKey()).To(Equal(clientKey.GetPublic()))
Expect(serverConn.RemotePublicKey().Equals(clientKey.GetPublic())).To(BeTrue())
})

It("opens and accepts streams", func() {
Expand Down

0 comments on commit f513f36

Please sign in to comment.