@@ -13,7 +13,7 @@ func TestWebSocketStats(t *testing.T) {
1313 defaultWebSocketStats .AddActiveConnection (uuid .New ())
1414 }
1515
16- for i := 0 ; i < 100 ; i ++ {
16+ for i := 0 ; i < 110 ; i ++ {
1717 defaultWebSocketStats .AddClosedConnection (uuid .New ())
1818 }
1919
@@ -23,7 +23,7 @@ func TestWebSocketStats(t *testing.T) {
2323 t .Errorf ("total active connections, expected: %d, got: %d" , expected , got )
2424 }
2525
26- if got , expected := stats .TotalClosedConnections , 100 ; got != uint (expected ) {
26+ if got , expected := stats .TotalClosedConnections , 110 ; got != uint (expected ) {
2727 t .Errorf ("total closed connections, expected: %d, got: %d" , expected , got )
2828 }
2929
@@ -33,7 +33,7 @@ func TestWebSocketStats(t *testing.T) {
3333
3434 SetMaxClosedConnectionMetricCacheSize (10 )
3535
36- if got , expected := stats .TotalClosedConnections , 100 ; got != uint (expected ) {
36+ if got , expected := stats .TotalClosedConnections , 110 ; got != uint (expected ) {
3737 t .Errorf ("total closed connections, expected: %d, got: %d" , expected , got )
3838 }
3939
@@ -47,7 +47,7 @@ func TestWebSocketStats(t *testing.T) {
4747
4848 stats = GetWebSocketStats ()
4949
50- if got , expected := stats .TotalClosedConnections , 110 ; got != uint (expected ) {
50+ if got , expected := stats .TotalClosedConnections , 120 ; got != uint (expected ) {
5151 t .Errorf ("total closed connections, expected: %d, got: %d" , expected , got )
5252 }
5353
0 commit comments