Fixing BATS tests that used dolt init --old-format

This commit is contained in:
Jason Fulghum
2023-12-19 16:27:20 -08:00
parent ded02fa240
commit 77363d74fb
2 changed files with 1 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ load $BATS_TEST_DIRNAME/helper/common.bash
setup() {
TARGET_NBF="__DOLT__"
setup_no_dolt_init
dolt init --old-format
DOLT_DEFAULT_BIN_FORMAT=__LD_1__ dolt init
}
teardown() {

View File

@@ -14,11 +14,3 @@ teardown() {
run dolt sql -q "create table t (p point srid 0 not null, spatial index(p))"
[ "$status" -eq 0 ]
}
@test "spatial-index: not supported in old format" {
rm -rf .dolt
dolt init --old-format
run dolt sql -q "create table t (p point srid 0 not null, spatial index(p))"
[ "$status" -eq 1 ]
[[ "$output" =~ "spatial indexes are only supported in storage format" ]] || false
}