Skip to content

Commit

Permalink
chore: fix golint error
Browse files Browse the repository at this point in the history
  • Loading branch information
braginini committed Jun 15, 2021
1 parent 11174a5 commit c49bd23
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions signal/signal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,28 @@ var _ = Describe("Client", func() {
clientB := createSignalClient(addr, keyB)
clientB.Receive(func(msg *sigProto.Message) error {
receivedOnB = msg.GetBody().GetPayload()
clientB.Send(&sigProto.Message{
err := clientB.Send(&sigProto.Message{
Key: keyB.PublicKey().String(),
RemoteKey: keyA.PublicKey().String(),
Body: &sigProto.Body{Payload: "pong"},
})
if err != nil {
Fail("failed sending a message to {PeerA}")
}
msgReceived.Done()
return nil
})
clientB.WaitConnected()

// PeerA initiates ping-pong
clientA.Send(&sigProto.Message{
err := clientA.Send(&sigProto.Message{
Key: keyA.PublicKey().String(),
RemoteKey: keyB.PublicKey().String(),
Body: &sigProto.Body{Payload: "ping"},
})
if err != nil {
Fail("failed sending a message to PeerB")
}

msgReceived.Wait()

Expand Down

0 comments on commit c49bd23

Please sign in to comment.