mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-12 10:32:27 -06:00
Fixing BATS tests that used dolt init --old-format
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user