Show off use of dolt sql-client instead of server_query

This commit is contained in:
Tim Sehn
2022-10-25 16:01:39 -07:00
parent 843daa1a92
commit 703b83dc77

View File

@@ -45,13 +45,14 @@ teardown() {
dolt checkout -b other
start_sql_server repo1
run server_query repo1 1 dolt "" "call dolt_push()" "" "" 1
run dolt sql-client --use-db repo1 -P $PORT -u dolt -q "call dolt_push()"
[ $status -ne 0 ]
[[ "$output" =~ "the current branch has no upstream branch" ]] || false
server_query repo1 1 dolt "" "call dolt_push('--set-upstream', 'origin', 'other') " ""
dolt sql-client --use-db repo1 -P $PORT -u dolt -q "call dolt_push('--set-upstream', 'origin', 'other')"
skip "In-memory branch doesn't track upstream"
server_query repo1 1 dolt "" "call dolt_push()" ""
dolt sql-client --use-db repo1 -P $PORT -u dolt -q "call dolt_push()"
}
@test "remotes-sql-server: push on sql-session commit" {