Skip to content

Commit

Permalink
NAS-134371: Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bvasilenko committed Feb 28, 2025
1 parent 024d866 commit b222c29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export class InitiatorListComponent implements OnInit {
const initiators$ = this.iscsiService.getInitiators().pipe(
repeat({ delay: () => this.iscsiService.listenForDataRefresh() }),
tap((initiators) => this.initiators = initiators),
untilDestroyed(this),
);

this.dataProvider = new AsyncDataProvider(initiators$);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ export class PortalListComponent implements OnInit {
const portals$ = this.api.call('iscsi.portal.query', []).pipe(
repeat({ delay: () => this.iscsiService.listenForDataRefresh() }),
tap((portals) => this.portals = portals),
untilDestroyed(this),
);

this.dataProvider = new AsyncDataProvider(portals$);
Expand Down

0 comments on commit b222c29

Please sign in to comment.