File tree 1 file changed +5
-1
lines changed
compiler/test/dotty/tools/dotc/sbt
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,11 @@ final class ProgressCallbackTest extends DottyTest:
97
97
locally :
98
98
// (4) assert that the final progress recorded is at the target phase,
99
99
// and progress is equal to the number of phases before the target.
100
- val (befores, target +: next +: _) = runnableSubPhases.span(_ != targetPhase): @ unchecked
100
+ //
101
+ // (4.1) extract the real befores by looking at the runnable phases
102
+ val (befores, target +: _) = runnableSubPhases.span(_ != targetPhase): @ unchecked
103
+ // (4.2) extract the predicted next phase by looking at all phases
104
+ val (_, `target` +: next +: _) = allSubPhases.span(_ != targetPhase): @ unchecked
101
105
// (4.1) we expect cancellation to occur *as we enter* the target phase,
102
106
// so no units should be visited in this phase. Therefore progress
103
107
// should be equal to the number of phases before the target. (as we have 1 unit)
You can’t perform that action at this time.
0 commit comments