@@ -1381,28 +1381,20 @@ func (suite *IntegrationTestSuite) TestGenerationalRechecking() {
13811381 suite .Require ().Equal (VerificationStatus {TotalTasks : 1 , CompletedTasks : 1 }, * status )
13821382
13831383 // turn writes off
1384- verifier .WritesOff (ctx )
1384+ suite .Require ().NoError (verifier .WritesOff (ctx ))
1385+
1386+ // now write to the source, this should not be seen by the change stream which should have ended
1387+ // because of the calls to WritesOff
13851388 _ , err = srcColl .InsertOne (ctx , bson.M {"_id" : 1019 , "x" : 1019 })
13861389 suite .Require ().NoError (err )
13871390 checkContinueChan <- struct {}{}
13881391 <- checkDoneChan
1389- // now write to the source, this should not be seen by the change stream which should have ended
1390- // because of the calls to WritesOff
1392+
13911393 status , err = verifier .GetVerificationStatus ()
13921394 suite .Require ().NoError (err )
13931395
1394- // there should be a failure from the src insert
1395- suite .T ().Logf ("status: %+v" , * status )
1396- suite .Assert ().Equal (VerificationStatus {TotalTasks : 1 , FailedTasks : 1 }, * status )
1397-
1398- failedTasks , incompleteTasks , err := FetchFailedAndIncompleteTasks (
1399- ctx ,
1400- verifier .verificationTaskCollection (),
1401- verificationTaskVerifyDocuments ,
1402- verifier .generation ,
1403- )
1404- suite .T ().Logf ("failed: %+v" , failedTasks )
1405- suite .T ().Logf ("incomplete: %+v" , incompleteTasks )
1396+ // there should be a no more tasks
1397+ suite .Assert ().Equal (VerificationStatus {}, * status )
14061398
14071399 checkContinueChan <- struct {}{}
14081400 require .NoError (suite .T (), errGroup .Wait ())
@@ -1523,7 +1515,7 @@ func (suite *IntegrationTestSuite) TestVerifierWithFilter() {
15231515 suite .Require ().Equal (VerificationStatus {TotalTasks : 1 , CompletedTasks : 1 }, * status )
15241516
15251517 // Turn writes off.
1526- verifier .WritesOff (ctx )
1518+ suite . Require (). NoError ( verifier .WritesOff (ctx ) )
15271519
15281520 // Tell CheckDriver to do one more pass. This should terminate the change stream.
15291521 checkContinueChan <- struct {}{}
0 commit comments