@@ -37,9 +37,6 @@ describe('Satellite > Cdn', () => {
37
37
38
38
const currentDate = new Date ( 2021 , 6 , 10 , 0 , 0 , 0 , 0 ) ;
39
39
40
- // TODO: Redo 32n for release
41
- const EXPECTED_PROPOSALS_BASE_COUNT = 28n ;
42
-
43
40
beforeAll ( async ( ) => {
44
41
pic = await PocketIc . create ( inject ( 'PIC_URL' ) ) ;
45
42
@@ -329,7 +326,7 @@ describe('Satellite > Cdn', () => {
329
326
canisterId : ( ) => canisterId ,
330
327
caller : ( ) => controllerSubmit ,
331
328
pic : ( ) => pic ,
332
- expected_proposal_id : EXPECTED_PROPOSALS_BASE_COUNT ,
329
+ expected_proposal_id : 32n ,
333
330
fullPaths : {
334
331
assetsUpgrade : '/magic.html' ,
335
332
segmentsDeployment : '/_juno/releases/satellite-v2.1.1.wasm.gz' ,
@@ -342,7 +339,7 @@ describe('Satellite > Cdn', () => {
342
339
testCdnGetProposal ( {
343
340
actor : ( ) => actor ,
344
341
owner : ( ) => controllerSubmit ,
345
- proposalId : EXPECTED_PROPOSALS_BASE_COUNT
342
+ proposalId : 32n
346
343
} ) ;
347
344
348
345
testCdnGetProposal ( {
@@ -362,7 +359,7 @@ describe('Satellite > Cdn', () => {
362
359
return actor ;
363
360
} ,
364
361
owner : ( ) => controllerSubmit ,
365
- proposalId : EXPECTED_PROPOSALS_BASE_COUNT
362
+ proposalId : 32n
366
363
} ) ;
367
364
368
365
testCdnGetProposal ( {
@@ -371,7 +368,7 @@ describe('Satellite > Cdn', () => {
371
368
return actor ;
372
369
} ,
373
370
owner : ( ) => controllerSubmit ,
374
- proposalId : EXPECTED_PROPOSALS_BASE_COUNT
371
+ proposalId : 32n
375
372
} ) ;
376
373
} ) ;
377
374
@@ -390,7 +387,7 @@ describe('Satellite > Cdn', () => {
390
387
canisterId : ( ) => canisterId ,
391
388
caller : ( ) => controllerSubmit ,
392
389
pic : ( ) => pic ,
393
- expected_proposal_id : EXPECTED_PROPOSALS_BASE_COUNT + 6n ,
390
+ expected_proposal_id : 38n ,
394
391
fullPaths : {
395
392
assetsUpgrade : '/book.html' ,
396
393
segmentsDeployment : '/_juno/releases/satellite-v3.1.1.wasm.gz' ,
@@ -403,7 +400,7 @@ describe('Satellite > Cdn', () => {
403
400
testCdnGetProposal ( {
404
401
actor : ( ) => actor ,
405
402
owner : ( ) => controllerSubmit ,
406
- proposalId : EXPECTED_PROPOSALS_BASE_COUNT
403
+ proposalId : 32n
407
404
} ) ;
408
405
409
406
testCdnGetProposal ( {
@@ -423,7 +420,7 @@ describe('Satellite > Cdn', () => {
423
420
return actor ;
424
421
} ,
425
422
owner : ( ) => controllerSubmit ,
426
- proposalId : EXPECTED_PROPOSALS_BASE_COUNT
423
+ proposalId : 32n
427
424
} ) ;
428
425
429
426
testCdnGetProposal ( {
@@ -432,7 +429,7 @@ describe('Satellite > Cdn', () => {
432
429
return actor ;
433
430
} ,
434
431
owner : ( ) => controllerSubmit ,
435
- proposalId : EXPECTED_PROPOSALS_BASE_COUNT
432
+ proposalId : 32n
436
433
} ) ;
437
434
} ) ;
438
435
@@ -442,7 +439,7 @@ describe('Satellite > Cdn', () => {
442
439
await expect (
443
440
commit_proposal ( {
444
441
sha256 : Array . from ( { length : 32 } ) . map ( ( _ , i ) => i ) ,
445
- proposal_id : EXPECTED_PROPOSALS_BASE_COUNT
442
+ proposal_id : 32n
446
443
} )
447
444
) . rejects . toThrow ( JUNO_AUTH_ERROR_NOT_WRITE_CONTROLLER ) ;
448
445
} ) ;
@@ -463,12 +460,12 @@ describe('Satellite > Cdn', () => {
463
460
464
461
testCdnListProposals ( {
465
462
actor : ( ) => actor ,
466
- proposalsLength : EXPECTED_PROPOSALS_BASE_COUNT + 11n
463
+ proposalsLength : 43n
467
464
} ) ;
468
465
469
466
testCdnCountProposals ( {
470
467
actor : ( ) => actor ,
471
- proposalsLength : EXPECTED_PROPOSALS_BASE_COUNT + 11n
468
+ proposalsLength : 43n
472
469
} ) ;
473
470
} ) ;
474
471
} ) ;
0 commit comments