@@ -13,7 +13,7 @@ func TestWebSocketStats(t *testing.T) {
13
13
defaultWebSocketStats .AddActiveConnection (uuid .New ())
14
14
}
15
15
16
- for i := 0 ; i < 100 ; i ++ {
16
+ for i := 0 ; i < 110 ; i ++ {
17
17
defaultWebSocketStats .AddClosedConnection (uuid .New ())
18
18
}
19
19
@@ -23,7 +23,7 @@ func TestWebSocketStats(t *testing.T) {
23
23
t .Errorf ("total active connections, expected: %d, got: %d" , expected , got )
24
24
}
25
25
26
- if got , expected := stats .TotalClosedConnections , 100 ; got != uint (expected ) {
26
+ if got , expected := stats .TotalClosedConnections , 110 ; got != uint (expected ) {
27
27
t .Errorf ("total closed connections, expected: %d, got: %d" , expected , got )
28
28
}
29
29
@@ -33,7 +33,7 @@ func TestWebSocketStats(t *testing.T) {
33
33
34
34
SetMaxClosedConnectionMetricCacheSize (10 )
35
35
36
- if got , expected := stats .TotalClosedConnections , 100 ; got != uint (expected ) {
36
+ if got , expected := stats .TotalClosedConnections , 110 ; got != uint (expected ) {
37
37
t .Errorf ("total closed connections, expected: %d, got: %d" , expected , got )
38
38
}
39
39
@@ -47,7 +47,7 @@ func TestWebSocketStats(t *testing.T) {
47
47
48
48
stats = GetWebSocketStats ()
49
49
50
- if got , expected := stats .TotalClosedConnections , 110 ; got != uint (expected ) {
50
+ if got , expected := stats .TotalClosedConnections , 120 ; got != uint (expected ) {
51
51
t .Errorf ("total closed connections, expected: %d, got: %d" , expected , got )
52
52
}
53
53
0 commit comments