Skip to content

Commit

Permalink
update specs
Browse files Browse the repository at this point in the history
  • Loading branch information
ajatprabha committed Dec 4, 2023
1 parent bd26961 commit d1a422a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion client_publish_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"context"
"encoding/json"
"errors"
"fmt"
"math"
"sync"
"testing"
Expand Down Expand Up @@ -260,7 +261,7 @@ func (s *ClientPublishSuite) TestPublishWithMultiConnectionMode() {
tba := testBrokerAddress
tba.Port = uint16(1883 + i)

clients[tba.String()] = mc
clients[fmt.Sprintf("%s-%d", tba.String(), ii)] = mc

mcks = append(mcks, mc, mt)
}
Expand Down
4 changes: 2 additions & 2 deletions client_resolver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ func TestClient_AddressUpdates(t *testing.T) {

go func() { ch <- []TCPAddress{testBrokerAddress, testBrokerAddress2} }()

wantAddrs := []string{testBrokerAddress.String(), testBrokerAddress2.String()}
wantAddrs := []string{testBrokerAddress.String() + "-0", testBrokerAddress2.String() + "-1"}
assert.Eventually(t, func() bool {
c.clientMu.RLock()
defer c.clientMu.RUnlock()
Expand Down Expand Up @@ -767,7 +767,7 @@ func TestClient_AddressUpdates(t *testing.T) {

go func() { ch <- []TCPAddress{testBrokerAddress, testBrokerAddress2} }()

wantAddrs := []string{testBrokerAddress.String(), testBrokerAddress2.String()}
wantAddrs := []string{testBrokerAddress.String() + "-0", testBrokerAddress2.String() + "-1"}
assert.Eventually(t, func() bool {
c.clientMu.RLock()
defer c.clientMu.RUnlock()
Expand Down

0 comments on commit d1a422a

Please sign in to comment.