bytedance / gopkg

Universal Utilities for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

util/gctuner: test fail randomly

zhangyunhao116 opened this issue · comments

Operating System

linux

Go Version

go1.18.6 linux/amd64
AND
go1.19.1 linux/amd64
AND
go latest

Package Version

latest

Affected Packages

util/gctuner

Expected Behavior

ALL TEST PASSED

Actual Behavior


--- FAIL: TestTuner (0.20s)
    tuner_test.go:37: 
                Error Trace:    tuner_test.go:37
                Error:          Not equal: 
                                expected: 0x1f4
                                actual  : 0x32
                Test:           TestTuner
FAIL
exit status 1
FAIL    github.com/bytedance/gopkg/util/gctuner 0.217s

Reproduction Steps

cd util/gctuner && go test -count=1
OR
cd util/gctuner && go test -count=10

Other Information

@joway PTAL, thanks!

commented

noticed, will fix it, thanks

commented

#157 @zhangyunhao116 hi, plz take a review, thanks