diff --git a/zrpc/internal/serverinterceptors/statinterceptor_test.go b/zrpc/internal/serverinterceptors/statinterceptor_test.go index 39fd8ba88323..322446e26993 100644 --- a/zrpc/internal/serverinterceptors/statinterceptor_test.go +++ b/zrpc/internal/serverinterceptors/statinterceptor_test.go @@ -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) {