Skip to content

Commit

Permalink
prevent port conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
omerlavanet committed Mar 11, 2024
1 parent 650ab23 commit 8d0ff06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protocol/integration/protocol_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ func TestConsumerProviderWithProviders(t *testing.T) {

numProviders := 5

consumerListenAddress := "localhost:21111"
consumerListenAddress := "localhost:21112"
pairingList := map[uint64]*lavasession.ConsumerSessionsWithProvider{}
type providerData struct {
account sigs.Account
Expand All @@ -340,7 +340,7 @@ func TestConsumerProviderWithProviders(t *testing.T) {
for i := 0; i < numProviders; i++ {
ctx := context.Background()
providerDataI := providers[i]
listenAddress := "localhost:111" + strconv.Itoa(i)
listenAddress := "localhost:112" + strconv.Itoa(i)
providers[i].server, providers[i].endpoint, providers[i].replySetter, providers[i].mockChainFetcher = createRpcProvider(t, ctx, consumerAccount.Addr.String(), specId, apiInterface, listenAddress, providerDataI.account, lavaChainID, []string(nil))
providers[i].replySetter.replyDataBuf = []byte(fmt.Sprintf(`{"reply": %d}`, i))
}
Expand Down

0 comments on commit 8d0ff06

Please sign in to comment.