chore: Fixup unit tests calling 'allowKubeResource' at the wrong time

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-05-09 09:28:18 -04:00
1 parent 40af0d31c5
commit 6167ad2c25
3 files changed
+12 -12

No files matched your search

@@ -687,8 +687,10 @@ export const getApplicationBuilder = () => {
const windowDi = builder.applicationWindow.only.di;
const cluster = windowDi.inject(hostedClusterInjectable);
assert(cluster, "For some reason the hosted cluster is not yet available, are you running in an 'afterWindowStart' callback?");
runInAction(() => {
cluster?.resourcesToShow.add(formatKubeApiResource(resource));
cluster.resourcesToShow.add(formatKubeApiResource(resource));
});
return builder;