Since the server is connected to 2 servers and the pool size is 5

the limit of 10 was too small.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
Ivan Kozlovic
2023-08-29 15:18:56 -06:00
parent 0d74453919
commit d6bc12d18b

View File

@@ -2108,7 +2108,7 @@ func TestRoutePoolConnectRace(t *testing.T) {
select {
case e := <-l.dbgCh:
if strings.Contains(e, "duplicate") {
if duplicate++; duplicate > 10 {
if duplicate++; duplicate > 20 {
t.Fatalf("Routes are constantly reconnecting: %v", e)
}
}