Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dogancanbakir committed Aug 24, 2023
1 parent 57ef08f commit 11d03dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trace/trace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
func TestFunctionTracing(t *testing.T) {
metrics, _ := Trace(func() {
time.Sleep(2 * time.Second)
}, nil)
})

if metrics.ExecutionDuration.Seconds() < 2 {
t.Errorf("ExecutionDuration is less than expected: %v", metrics.ExecutionDuration)
Expand Down

0 comments on commit 11d03dc

Please sign in to comment.