fix bats tests

This commit is contained in:
jennifersp
2023-01-25 10:51:48 -08:00
parent fa03dc16f6
commit de2bdf74cb
2 changed files with 4 additions and 4 deletions

View File

@@ -92,7 +92,7 @@ SQL
run dolt sql -q "SELECT trigger_name, event_object_table, action_statement, definer FROM information_schema.triggers" -r csv
[ "$status" -eq 0 ]
[[ "$output" =~ "tt,mytable,SET NEW.v1 = NEW.v1 * 11,\`root\`@\`localhost\`" ]] || false
[[ "$output" =~ "tt,mytable,SET NEW.v1 = NEW.v1 * 11,root@localhost" ]] || false
}
@test "import-mysqldump: database with procedure dumped with --routines flag" {
@@ -114,7 +114,7 @@ SQL
run dolt sql -q "SHOW PROCEDURE STATUS" -r csv
[ "$status" -eq 0 ]
[[ "$output" =~ "new_proc,PROCEDURE,\`root\`@\`localhost\`" ]] || false
[[ "$output" =~ "new_proc,PROCEDURE,root@localhost" ]] || false
}
@test "import-mysqldump: a table with all types with DEFAULT NULL dump" {

View File

@@ -143,7 +143,7 @@ SQL
run dolt sql -q "SELECT trigger_name, event_object_table, action_statement, definer FROM information_schema.triggers" -r csv
[ "$status" -eq 0 ]
[[ "$output" =~ "tt,mytable,SET NEW.v1 = NEW.v1 * 11,\`root\`@\`localhost\`" ]] || false
[[ "$output" =~ "tt,mytable,SET NEW.v1 = NEW.v1 * 11,root@localhost" ]] || false
}
@test "import mysqldump: database with procedure dumped with --routines flag" {
@@ -165,7 +165,7 @@ SQL
run dolt sql -q "SHOW PROCEDURE STATUS" -r csv
[ "$status" -eq 0 ]
[[ "$output" =~ "new_proc,PROCEDURE,\`root\`@\`localhost\`" ]] || false
[[ "$output" =~ "new_proc,PROCEDURE,root@localhost" ]] || false
}
@test "import mysqldump: a table with all types with DEFAULT NULL dump" {