Skip to content

Commit

Permalink
chore: tweak regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Feb 28, 2022
1 parent c4e0e7e commit 7c4cddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/dbtest/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ func TestQuery(t *testing.T) {
},
}

timeRE := regexp.MustCompile(`'\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d+(\+\d{2}:\d{2})?'`)
timeRE := regexp.MustCompile(`'2\d{3}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(\.\d+)?(\+\d{2}:\d{2})?'`)

testEachDB(t, func(t *testing.T, dbName string, db *bun.DB) {
for i, fn := range queries {
Expand Down

0 comments on commit 7c4cddf

Please sign in to comment.