@@ -607,45 +607,4 @@ describe('GithubPackage', function() {
607
607
) ;
608
608
} ) ;
609
609
} ) ;
610
-
611
- describe ( 'serialized state' , function ( ) {
612
- function resolutionProgressFrom ( pkg , workdir ) {
613
- return pkg . getContextPool ( ) . getContext ( workdir ) . getResolutionProgress ( ) ;
614
- }
615
-
616
- it ( 'restores nonempty resolution progress' , async function ( ) {
617
- const workdirMergeConflict = await cloneRepository ( 'merge-conflict' ) ;
618
- const workdirNoConflict = await cloneRepository ( 'three-files' ) ;
619
-
620
- project . setPaths ( [ workdirMergeConflict , workdirNoConflict ] ) ;
621
- await githubPackage . activate ( ) ;
622
- await githubPackage . scheduleActiveContextUpdate ( ) ;
623
-
624
- // Record some state to recover later.
625
- const resolutionMergeConflict0 = resolutionProgressFrom ( githubPackage , workdirMergeConflict ) ;
626
- await assert . async . isTrue ( resolutionMergeConflict0 . loaded ) ;
627
- resolutionMergeConflict0 . reportMarkerCount ( 'modified-on-both-ours.txt' , 3 ) ;
628
-
629
- const payload = githubPackage . serialize ( ) ;
630
-
631
- // Use a little guilty knowledge of the payload structure to ensure that the workdir without resolution
632
- // progress isn't serialized with the rest of the package state.
633
- assert . isDefined ( payload . resolutionProgressByPath [ workdirMergeConflict ] ) ;
634
- assert . isUndefined ( payload . resolutionProgressByPath [ workdirNoConflict ] ) ;
635
-
636
- const githubPackage1 = new GithubPackage (
637
- workspace , project , commandRegistry , notificationManager , tooltips , styles , config , confirm , getLoadSettings ,
638
- ) ;
639
- await githubPackage1 . activate ( payload ) ;
640
- await githubPackage1 . scheduleActiveContextUpdate ( ) ;
641
-
642
- const resolutionMergeConflict1 = resolutionProgressFrom ( githubPackage1 , workdirMergeConflict ) ;
643
- const resolutionNoConflict1 = resolutionProgressFrom ( githubPackage1 , workdirNoConflict ) ;
644
-
645
- await assert . async . isFalse ( resolutionMergeConflict1 . isEmpty ( ) ) ;
646
- assert . equal ( resolutionMergeConflict1 . getRemaining ( 'modified-on-both-ours.txt' ) , 3 ) ;
647
-
648
- assert . isTrue ( resolutionNoConflict1 . isEmpty ( ) ) ;
649
- } ) ;
650
- } ) ;
651
610
} ) ;
0 commit comments