@@ -73,7 +73,7 @@ const startCollectionLoop = jest
73
73
. mockImplementation ( ( ) => { } )
74
74
const setup = async ( ) => {
75
75
logger = createLogger ( {
76
- name : 'DIPs Manager Test Logger' ,
76
+ name : 'DIPs Test Logger' ,
77
77
async : false ,
78
78
level : __LOG_LEVEL__ ?? 'error' ,
79
79
} )
@@ -305,7 +305,7 @@ describe('DipsManager', () => {
305
305
allocationLifetime : 16 ,
306
306
requireSupported : true ,
307
307
safety : true ,
308
- protocolNetwork : 'eip155:42161 ' ,
308
+ protocolNetwork : 'eip155:421614 ' ,
309
309
allocationAmount : '1030' ,
310
310
} )
311
311
// Mock fetch the subgraph deployment from the network subgraph
@@ -326,7 +326,7 @@ describe('DipsManager', () => {
326
326
allocationLifetime : 16 ,
327
327
requireSupported : true ,
328
328
safety : true ,
329
- protocolNetwork : 'eip155:42161 ' ,
329
+ protocolNetwork : 'eip155:421614 ' ,
330
330
allocationAmount : '1030' ,
331
331
} )
332
332
} )
@@ -405,11 +405,14 @@ describe('DipsCollector', () => {
405
405
jest . clearAllMocks ( )
406
406
407
407
// Create a test agreement
408
+ // Note last_allocation_id is set to the testAllocationId
409
+ // current_allocation_id is set to null so that we can collect payment
410
+ // (also last_payment_collected_at is set to null)
408
411
await managementModels . IndexingAgreement . create ( {
409
412
id : testAgreementId ,
410
413
subgraph_deployment_id : testDeploymentId ,
411
- current_allocation_id : testAllocationId ,
412
- last_allocation_id : null ,
414
+ current_allocation_id : null ,
415
+ last_allocation_id : testAllocationId ,
413
416
last_payment_collected_at : null ,
414
417
cancelled_at : null ,
415
418
min_epochs_per_collection : BigInt ( 1 ) ,
0 commit comments