chore: add more tests (#3279)
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
package stat
|
||||
|
||||
import (
|
||||
"os"
|
||||
"strconv"
|
||||
"sync/atomic"
|
||||
"testing"
|
||||
@@ -12,8 +11,7 @@ import (
|
||||
)
|
||||
|
||||
func TestReport(t *testing.T) {
|
||||
os.Setenv(clusterNameKey, "test-cluster")
|
||||
defer os.Unsetenv(clusterNameKey)
|
||||
t.Setenv(clusterNameKey, "test-cluster")
|
||||
|
||||
var count int32
|
||||
SetReporter(func(s string) {
|
||||
|
||||
Reference in New Issue
Block a user