Skip to content

Commit

Permalink
chore: add more tests (#4656)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan authored Feb 14, 2025
1 parent 790302b commit af78fc7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions zrpc/internal/serverinterceptors/statinterceptor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit af78fc7

Please sign in to comment.