From a19dadd32b8bd580c815620368a0d0a7cff21dd5 Mon Sep 17 00:00:00 2001 From: Neil Macneale IV Date: Tue, 16 May 2023 13:21:34 -0700 Subject: [PATCH] Use UTC timestamp in date comparison test. Allows tests to run on laptops which aren't in UTC. --- integration-tests/bats/sql.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-tests/bats/sql.bats b/integration-tests/bats/sql.bats index 5d78e56725..2591057a94 100755 --- a/integration-tests/bats/sql.bats +++ b/integration-tests/bats/sql.bats @@ -2544,7 +2544,7 @@ SQL [ "$status" -eq 0 ] [[ "$output" =~ "3" ]] || false - run dolt sql -q "SELECT COUNT(*) from dolt_diff_t where to_commit_date < now()" + run dolt sql -q "SELECT COUNT(*) from dolt_diff_t where to_commit_date < UTC_TIMESTAMP()" [ "$status" -eq 0 ] [[ "$output" =~ "3" ]] || false }