@@ -291,7 +291,6 @@ func TestValidationAndExtensions(t *testing.T) {
291
291
// request fails with base loader reading from block store that's missing data
292
292
responseManager .ProcessRequests (td .ctx , td .p , td .requests )
293
293
td .assertCompleteRequestWith (graphsync .RequestFailedContentNotFound )
294
- td .taskqueue .WaitForNoActiveTasks ()
295
294
296
295
err := td .peristenceOptions .Register ("chainstore" , td .persistence )
297
296
require .NoError (t , err )
@@ -633,8 +632,6 @@ func TestValidationAndExtensions(t *testing.T) {
633
632
td .verifyNResponses (blockCount )
634
633
td .assertPausedRequest ()
635
634
636
- td .taskqueue .WaitForNoActiveTasks ()
637
-
638
635
// send update
639
636
responseManager .ProcessRequests (td .ctx , td .p , td .updateRequests )
640
637
@@ -1114,6 +1111,7 @@ func (td *testData) newQueryExecutor(manager queryexecutor.Manager) *queryexecut
1114
1111
func (td * testData ) assertPausedRequest () {
1115
1112
var pausedRequest pausedRequest
1116
1113
testutil .AssertReceive (td .ctx , td .t , td .pausedRequests , & pausedRequest , "should pause request" )
1114
+ td .taskqueue .WaitForNoActiveTasks ()
1117
1115
}
1118
1116
1119
1117
func (td * testData ) getAllBlocks () []blocks.Block {
@@ -1150,6 +1148,7 @@ func (td *testData) assertCompleteRequestWith(expectedCode graphsync.ResponseSta
1150
1148
var status graphsync.ResponseStatusCode
1151
1149
testutil .AssertReceive (td .ctx , td .t , td .completedResponseStatuses , & status , "should receive status" )
1152
1150
require .Equal (td .t , expectedCode , status )
1151
+ td .taskqueue .WaitForNoActiveTasks ()
1153
1152
}
1154
1153
1155
1154
func (td * testData ) assertOnlyCompleteProcessingWith (expectedCode graphsync.ResponseStatusCode ) {
0 commit comments