@@ -91,8 +91,9 @@ suite("test_txn_case") {
91
91
assertTrue (syncer. ingestBinlog())
92
92
assertTrue (syncer. commitTxn())
93
93
assertTrue (syncer. checkTargetVersion())
94
+ target_sql " sync "
94
95
def res = target_sql """ SELECT * FROM ${ txnTableName} WHERE test=${ test_num} """
95
- assertTrue (res. size() == 1 )
96
+ assertEquals (res. size(), 1 )
96
97
97
98
98
99
@@ -189,8 +190,9 @@ suite("test_txn_case") {
189
190
assertTrue (syncer. ingestBinlog())
190
191
assertTrue (syncer. commitTxn())
191
192
assertTrue (syncer. checkTargetVersion())
193
+ target_sql " sync "
192
194
res = target_sql """ SELECT * FROM ${ txnTableName} WHERE test=${ test_num} """
193
- assertTrue (res. size() == 1 )
195
+ assertEquals (res. size(), 1 )
194
196
195
197
// End Test 3
196
198
syncer. context. user = context. config. feSyncerUser
@@ -235,8 +237,9 @@ suite("test_txn_case") {
235
237
// def lastCommitInfo = syncer.copyCommitInfos()
236
238
assertTrue (syncer. commitTxn())
237
239
assertTrue (syncer. checkTargetVersion())
240
+ target_sql " sync "
238
241
res = target_sql """ SELECT * FROM ${ txnTableName} WHERE test=${ test_num} """
239
- assertTrue (res. size() == 1 )
242
+ assertEquals (res. size(), 1 )
240
243
// syncer.context.commitInfos = lastCommitInfo
241
244
// assertTrue(syncer.commitTxn() == false)
242
245
@@ -288,8 +291,9 @@ suite("test_txn_case") {
288
291
syncer. context. passwd = " 123456"
289
292
assertTrue (syncer. commitTxn())
290
293
assertTrue (syncer. checkTargetVersion())
294
+ target_sql " sync "
291
295
res = target_sql """ SELECT * FROM ${ txnTableName} WHERE test=${ test_num} """
292
- assertTrue (res. size() == 1 )
296
+ assertEquals (res. size(), 1 )
293
297
294
298
// End Test 5
295
299
syncer. context. user = context. config. feSyncerUser
0 commit comments