chore: add more tests (#4656)

This commit is contained in:
Kevin Wan
2025-02-14 23:43:34 +08:00
committed by GitHub
parent 790302b486
commit af78fc7c5f

View File

@@ -241,6 +241,16 @@ func Test_isSlow(t *testing.T) {
true,
nil,
},
{
"dynamic",
args{
duration: time.Millisecond * 200,
},
true,
func() {
SetSlowThreshold(time.Millisecond * 100)
},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {