mengw15 commented on code in PR #6558:
URL: https://github.com/apache/texera/pull/6558#discussion_r3610184271


##########
frontend/src/app/common/service/computing-unit/computing-unit-status/computing-unit-status.service.spec.ts:
##########
@@ -143,4 +144,83 @@ describe("ComputingUnitStatusService", () => {
     service.selectComputingUnit(5, 8);
     expect(resetCount).toBe(1);
   });
+
+  it("getAllComputingUnits() replays the current list and forwards later 
updates", () => {
+    const emissions: DashboardWorkflowComputingUnit[][] = [];
+    service.getAllComputingUnits().subscribe(units => emissions.push(units));
+
+    // BehaviorSubject replays the current value; construction seeded it with 
of([]).

Review Comment:
   Good catch — corrected in `ebc32f66`. The comment now states the 
BehaviorSubject is initialized with `[]`; the `of([])` is the managing stub's 
`listComputingUnits` return value, not the subject's seed.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to