Skip to content

Commit

Permalink
Fixed test failure caused by new result set schema
Browse files Browse the repository at this point in the history
zachmu committed Mar 19, 2021
1 parent c42d254 commit ceb7673
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions integration-tests/bats/sql-commit.bats
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ teardown() {
}

@test "sql-commit: DOLT_COMMIT with all flag, message and author" {
run dolt sql -q "SELECT DOLT_COMMIT('-a', '-m', 'Commit1', '--author', 'John Doe <john@doe.com>')"
run dolt sql -r csv -q "SELECT DOLT_COMMIT('-a', '-m', 'Commit1', '--author', 'John Doe <john@doe.com>') as commit_hash"
[ $status -eq 0 ]
DCOMMIT=$output

@@ -75,7 +75,7 @@ teardown() {
[[ "$output" =~ "$regex" ]] || false

# Check that dolt_log has the same hash as the output of DOLT_COMMIT
run dolt sql -q "SELECT commit_hash from dolt_log LIMIT 1"
run dolt sql -r csv -q "SELECT commit_hash from dolt_log LIMIT 1"
[ $status -eq 0 ]
[[ "$output" =~ "$DCOMMIT" ]] || false

@@ -90,7 +90,7 @@ teardown() {

run dolt sql -q "SELECT DOLT_ADD('.')"

run dolt sql -q "SELECT DOLT_COMMIT('-m', 'Commit1', '--author', 'John Doe <john@doe.com>')"
run dolt sql -q "SELECT DOLT_COMMIT('-m', 'Commit1', '--author', 'John Doe <john@doe.com>') as commit_hash"
[ "$status" -eq 0 ]
DCOMMIT=$output

@@ -178,4 +178,4 @@ SQL

get_head_commit() {
dolt log -n 1 | grep -m 1 commit | cut -c 8-
}
}

0 comments on commit ceb7673

Please sign in to comment.