mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-26 02:58:44 -06:00
fixing bats tests
This commit is contained in:
@@ -10,23 +10,16 @@ teardown() {
|
||||
teardown_common
|
||||
}
|
||||
|
||||
@test "spatial-index: spatial indexes disabled" {
|
||||
skip_nbf_not_dolt
|
||||
run dolt sql -q "create table t (p point srid 0 not null, spatial index(p))"
|
||||
[ "$status" -eq 1 ]
|
||||
[[ "$output" =~ "only the following types of index constraints are supported" ]] || false
|
||||
}
|
||||
|
||||
@test "spatial-index: spatial indexes enabled" {
|
||||
skip_nbf_not_dolt
|
||||
DOLT_ENABLE_SPATIAL_INDEX=1 run dolt sql -q "create table t (p point srid 0 not null, spatial index(p))"
|
||||
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
|
||||
DOLT_ENABLE_SPATIAL_INDEX=1 run dolt sql -q "create table t (p point srid 0 not null, spatial index(p))"
|
||||
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