Skip to content

Commit 43207cf

Browse files
authored
Fix regex in tests (#31)
1 parent eb63db7 commit 43207cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/pgkit_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ func TestSlogSlowQuery(t *testing.T) {
10511051
}
10521052

10531053
assert.Equal(t, "SELECT pg_sleep(0.1)", sqlRecord.Query)
1054-
assert.Regexp(t, "10.*ms$", sqlRecord.Duration)
1054+
assert.Regexp(t, `^\d+\.\d+ms$`, sqlRecord.Duration)
10551055
}
10561056

10571057
func TestSlogTracerBatchQuery(t *testing.T) {

0 commit comments

Comments
 (0)