From 19c89b31844dd007bcd2735652efa7bb3d072eca Mon Sep 17 00:00:00 2001 From: Nick Tobey Date: Thu, 11 Apr 2024 14:09:25 -0700 Subject: [PATCH] Skip auto_increment_lock_modes.bats when running tests wiht remote-engine: the test manages the engine itself. --- integration-tests/bats/auto_increment_lock_modes.bats | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/integration-tests/bats/auto_increment_lock_modes.bats b/integration-tests/bats/auto_increment_lock_modes.bats index 687317a6e5..595b0b07e4 100644 --- a/integration-tests/bats/auto_increment_lock_modes.bats +++ b/integration-tests/bats/auto_increment_lock_modes.bats @@ -60,9 +60,12 @@ teardown() { system_variables: innodb_autoinc_lock_mode: 0 EOF + if [ "$SQL_ENGINE" = "remote-engine" ]; then + skip "This test tests remote connections directly, SQL_ENGINE is not needed." + fi start_sql_server_with_config "" config.yml - dolt sql -q "INSERT INTO test1 (c0) select 0 from sequence5bit; INSERT INTO ranges VALUES (0, LAST_INSERT_ID(), ROW_COUNT()); COMMIT;" & - dolt sql -q "INSERT INTO test1 (c0) select 1 from sequence5bit; INSERT INTO ranges VALUES (1, LAST_INSERT_ID(), ROW_COUNT()); COMMIT;" + dolt sql -q "INSERT INTO test1 (c0) select 0 from sequence10bit; INSERT INTO ranges VALUES (0, LAST_INSERT_ID(), ROW_COUNT()); COMMIT;" & + dolt sql -q "INSERT INTO test1 (c0) select 1 from sequence10bit; INSERT INTO ranges VALUES (1, LAST_INSERT_ID(), ROW_COUNT()); COMMIT;" wait $! stop_sql_server @@ -70,7 +73,7 @@ EOF run dolt sql -r csv -q "select c0, min(pk) = firstId, - rowCount = 32, + rowCount = 1024, max(pk) = firstId + rowCount -1 from test1 join ranges on test1.c0 = ranges.pk group by c0" [ "$status" -eq 0 ]