Update error messages in tests.

With the preemptive check removed, the error messages actually become more informative!
This commit is contained in:
Nick Tobey
2023-05-04 16:16:04 -07:00
parent d1ec6ea35b
commit a57f9cfed1
@@ -42,8 +42,7 @@ CREATE TABLE test (
SQL
run dolt table import -r test `batshelper 2pk5col-ints.csv`
[ "$status" -eq 1 ]
[[ "$output" =~ "Error determining the output schema." ]] || false
[[ "$output" =~ "cause: input primary keys do not match primary keys of existing table" ]] || false
[[ "$output" =~ "Field 'pk' doesn't have a default value" ]] || false
}
@test "import-replace-tables: replace table using psv" {
@@ -79,8 +78,7 @@ CREATE TABLE test (
SQL
run dolt table import -r test `batshelper 1pk5col-ints.psv`
[ "$status" -eq 1 ]
[[ "$output" =~ "Error determining the output schema." ]] || false
[[ "$output" =~ "cause: input primary keys do not match primary keys of existing table" ]] || false
[[ "$output" =~ "Field 'pk1' doesn't have a default value" ]] || false
}
@test "import-replace-tables: replace table using schema with csv" {
@@ -252,8 +250,7 @@ SQL
[[ "$output" =~ "Import completed successfully." ]] || false
run dolt table import -r test `batshelper 1pk5col-ints.csv`
[ "$status" -eq 1 ]
[[ "$output" =~ "Error determining the output schema." ]] || false
[[ "$output" =~ "cause: input primary keys do not match primary keys of existing table" ]] || false
[[ "$output" =~ "Field 'pk1' doesn't have a default value" ]] || false
}
@test "import-replace-tables: replace table with 2 primary keys with a csv with 2 primary keys" {