mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-08 02:36:27 -05:00
Update mysql client tests to remove newline from expected responses.
This commit is contained in:
@@ -50,7 +50,7 @@ const tests = [
|
||||
{ q: "call dolt_add('-A');", res: [{ status: 0 }] },
|
||||
{ q: "call dolt_commit('-m', 'my commit')", res: [] },
|
||||
{ q: "select COUNT(*) FROM dolt_log", res: [{ "COUNT(*)": 2 }] },
|
||||
{ q: "call dolt_checkout('-b', 'mybranch')", res: [{ status: 0, message: "Switched to branch 'mybranch'\n" }] },
|
||||
{ q: "call dolt_checkout('-b', 'mybranch')", res: [{ status: 0, message: "Switched to branch 'mybranch'" }] },
|
||||
{
|
||||
q: "insert into test (pk, `value`) values (1,1)",
|
||||
res: {
|
||||
|
||||
@@ -19,7 +19,7 @@ QUERY_RESPONSE = [
|
||||
{"call dolt_add('-A');": [(0,)]},
|
||||
{"call dolt_commit('-m', 'my commit')": [('',)]},
|
||||
{"select COUNT(*) FROM dolt_log": [(2,)]},
|
||||
{"call dolt_checkout('-b', 'mybranch')": [(0, "Switched to branch 'mybranch'\n")]},
|
||||
{"call dolt_checkout('-b', 'mybranch')": [(0, "Switched to branch 'mybranch'")]},
|
||||
{"insert into test (pk, `value`) values (1,1)": []},
|
||||
{"call dolt_commit('-a', '-m', 'my commit2')": [('',)]},
|
||||
{"call dolt_checkout('main')": [(0, "Switched to branch 'main'")]},
|
||||
|
||||
@@ -12,7 +12,7 @@ QUERY_RESPONSE = [
|
||||
{"call dolt_add('-A');": ((0,),)},
|
||||
{"call dolt_commit('-m', 'my commit')": (('',),)},
|
||||
{"select COUNT(*) FROM dolt_log": ((2,),)},
|
||||
{"call dolt_checkout('-b', 'mybranch')": ((0, "Switched to branch 'mybranch'\n"))}
|
||||
{"call dolt_checkout('-b', 'mybranch')": ((0, "Switched to branch 'mybranch'"),)},
|
||||
{"insert into test (pk, `value`) values (1,1)": ()},
|
||||
{"call dolt_commit('-a', '-m', 'my commit2')": (('',),)},
|
||||
{"call dolt_checkout('main')": ((0, "Switched to branch 'main'"),)},
|
||||
|
||||
@@ -16,10 +16,10 @@ QUERY_RESPONSE = [
|
||||
{"call dolt_add('-A');": [(0,)]},
|
||||
{"call dolt_commit('-m', 'my commit')": [('',)]},
|
||||
{"select COUNT(*) FROM dolt_log": [(2,)]},
|
||||
{"call dolt_checkout('-b', 'mybranch')": [(0, "Switched to branch 'mybranch'\n")]},
|
||||
{"call dolt_checkout('-b', 'mybranch')": [(0, "Switched to branch 'mybranch'")]},
|
||||
{"insert into test (pk, `value`) values (1,1)": []},
|
||||
{"call dolt_commit('-a', '-m', 'my commit2')": [('',)]},
|
||||
{"call dolt_checkout('main')": [(0, "Switched to branch 'mai'\n")]},
|
||||
{"call dolt_checkout('main')": [(0, "Switched to branch 'main'")]},
|
||||
{"call dolt_merge('mybranch')": [('',1,0,)]},
|
||||
{"select COUNT(*) FROM dolt_log": [(3,)]},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user