Skip to content

Commit

Permalink
fix: Adapt test BufferConf limits to avoid getting packets congested …
Browse files Browse the repository at this point in the history
…too early
  • Loading branch information
b1tamara committed Jun 28, 2023
1 parent b894410 commit ed1e8a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pcap/test/integration/agent_api_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ var _ = Describe("Using LocalResolver", func() {
targets = append(targets, agentTarget1)

agentTLSConf := &pcap.MutualTLS{SkipVerify: true}
apiBuffConf := pcap.BufferConf{Size: 100000, UpperLimit: 99000, LowerLimit: 90000}
apiBuffConf := pcap.BufferConf{Size: 100000, UpperLimit: 99990, LowerLimit: 99000}
apiClient, apiServer, api, apiAddr = createAPIwithLocalResolver(targets, apiBuffConf, agentTLSConf, apiID)

})
Expand Down
2 changes: 1 addition & 1 deletion src/pcap/test/integration/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func createAgent(port int, id string, tlsCreds credentials.TransportCredentials)
var err error
var server *grpc.Server

agent := pcap.NewAgent(pcap.BufferConf{Size: 10000, UpperLimit: 9800, LowerLimit: 8000}, id)
agent := pcap.NewAgent(pcap.BufferConf{Size: 10000, UpperLimit: 9990, LowerLimit: 9000}, id)

listener := localNodeListener(port)
tcpAddr, ok := listener.Addr().(*net.TCPAddr)
Expand Down

0 comments on commit ed1e8a1

Please sign in to comment.