Skip to content

Commit

Permalink
adding a bats test
Browse files Browse the repository at this point in the history
  • Loading branch information
James Cor committed Feb 14, 2024
1 parent 321c232 commit 75b95f8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions integration-tests/bats/sql-create-database.bats
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,17 @@ SQL
[ ! -d mydb ]
}

@test "sql-create-database: drop and recreate database" {
run dolt sql <<SQL
create database mydb;
drop database mydb;
create database mydb;
SQL

[ "$status" -eq 0 ]
[ ! -d mydb ]
}

@test "sql-create-database: with data-dir" {
skiponwindows "failing with file in use error"

Expand Down

0 comments on commit 75b95f8

Please sign in to comment.