Skip to content

Commit af78fc7

Browse files
authored
chore: add more tests (#4656)
1 parent 790302b commit af78fc7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

zrpc/internal/serverinterceptors/statinterceptor_test.go

+10
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,16 @@ func Test_isSlow(t *testing.T) {
241241
true,
242242
nil,
243243
},
244+
{
245+
"dynamic",
246+
args{
247+
duration: time.Millisecond * 200,
248+
},
249+
true,
250+
func() {
251+
SetSlowThreshold(time.Millisecond * 100)
252+
},
253+
},
244254
}
245255
for _, tt := range tests {
246256
t.Run(tt.name, func(t *testing.T) {

0 commit comments

Comments
 (0)