@@ -207,7 +207,6 @@ func TestTxnModeCreateLogicallyReplicated(t *testing.T) {
207207 t .Logf ("Job %d status: %s" , jobID , status )
208208
209209 // Insert more data in a transaction after replication starts
210- now := s .Clock ().Now ()
211210 sourceDB .Exec (t , `
212211 BEGIN;
213212 INSERT INTO orders VALUES (2, 100, 75.00);
@@ -216,7 +215,7 @@ func TestTxnModeCreateLogicallyReplicated(t *testing.T) {
216215 ` )
217216
218217 // Wait for replication to catch up
219- ldrtestutils .WaitUntilReplicatedTime (t , now , destDB , jobID )
218+ ldrtestutils .WaitUntilReplicatedTime (t , s . Clock (). Now () , destDB , jobID )
220219
221220 // Verify all data was replicated including initial scan and transactional inserts
222221 destDB .CheckQueryResults (t , "SELECT * FROM orders ORDER BY id" , [][]string {
@@ -226,15 +225,14 @@ func TestTxnModeCreateLogicallyReplicated(t *testing.T) {
226225 })
227226
228227 // Test that a multi-statement transaction is replicated atomically
229- now = s .Clock ().Now ()
230228 sourceDB .Exec (t , `
231229 BEGIN;
232230 UPDATE orders SET amount = amount + 10 WHERE customer_id = 100;
233231 INSERT INTO orders VALUES (4, 102, 200.00);
234232 COMMIT;
235233 ` )
236234
237- ldrtestutils .WaitUntilReplicatedTime (t , now , destDB , jobID )
235+ ldrtestutils .WaitUntilReplicatedTime (t , s . Clock (). Now () , destDB , jobID )
238236
239237 // Verify the transaction was applied atomically
240238 destDB .CheckQueryResults (t , "SELECT * FROM orders ORDER BY id" , [][]string {
0 commit comments