Skip to content

Commit 6a99578

Browse files
committed
fix escape in testPlayerCopyVarcharPKCaseInsensitive
Signed-off-by: meiji163 <[email protected]>
1 parent a919b4d commit 6a99578

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

go/vt/vttablet/tabletmanager/vreplication/vcopier_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ func testPlayerCopyVarcharPKCaseInsensitive(t *testing.T) {
284284
"/update _vt.vreplication set state='Copying'",
285285
// Copy mode.
286286
"insert into dst(idc,val) values ('a',1)",
287-
`/insert into _vt.copy_state \(lastpk, vrepl_id, table_name\) values \('fields:{name:\"idc\" type:VARCHAR charset:45 flags:20483} rows:{lengths:1 values:\"a\"}'.*`,
287+
`/insert into _vt.copy_state \(lastpk, vrepl_id, table_name\) values \('fields:{name:"idc" type:VARCHAR charset:45 flags:20483} rows:{lengths:1 values:"a"}'.*`,
288288
// Copy-catchup mode.
289289
`/insert into dst\(idc,val\) select 'B', 3 from dual where \( .* 'B' COLLATE .* \) <= \( .* 'a' COLLATE .* \)`,
290290
).Then(func(expect qh.ExpectationSequencer) qh.ExpectationSequencer {
@@ -294,11 +294,11 @@ func testPlayerCopyVarcharPKCaseInsensitive(t *testing.T) {
294294
//upd1 := expect.
295295
upd1 := expect.Then(qh.Eventually(
296296
"insert into dst(idc,val) values ('B',3)",
297-
`/insert into _vt.copy_state \(lastpk, vrepl_id, table_name\) values \('fields:{name:\"idc\" type:VARCHAR charset:45 flags:20483} rows:{lengths:1 values:\"B\"}'.*`,
297+
`/insert into _vt.copy_state \(lastpk, vrepl_id, table_name\) values \('fields:{name:"idc" type:VARCHAR charset:45 flags:20483} rows:{lengths:1 values:"B"}'.*`,
298298
))
299299
upd2 := expect.Then(qh.Eventually(
300300
"insert into dst(idc,val) values ('c',2)",
301-
`/insert into _vt.copy_state \(lastpk, vrepl_id, table_name\) values \('fields:{name:\\"idc\\" type:VARCHAR charset:45 flags:20483} rows:{lengths:1 values:\\"c\\"}'.*`,
301+
`/insert into _vt.copy_state \(lastpk, vrepl_id, table_name\) values \('fields:{name:"idc" type:VARCHAR charset:45 flags:20483} rows:{lengths:1 values:"c"}'.*`,
302302
))
303303
upd1.Then(upd2.Eventually())
304304
return upd2

0 commit comments

Comments
 (0)