Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Malton <sebastian@malton.name>
  • Loading branch information
Nokel81 committed Mar 7, 2023
1 parent df4eaf4 commit b3773c8
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import type { K8sRequest } from "../../main/k8s-request.injectable";
import k8sRequestInjectable from "../../main/k8s-request.injectable";
import type { DetectClusterMetadata } from "../../main/cluster-detectors/detect-cluster-metadata.injectable";
import detectClusterMetadataInjectable from "../../main/cluster-detectors/detect-cluster-metadata.injectable";
import { delay } from "../../common/utils";

describe("Refresh Cluster Accessibility Technical Tests", () => {
let builder: ApplicationBuilder;
Expand All @@ -34,9 +33,7 @@ describe("Refresh Cluster Accessibility Technical Tests", () => {
let detectClusterMetadataMock: AsyncFnMock<DetectClusterMetadata>;

beforeEach(async () => {
builder = getApplicationBuilder({
fakeTime: false,
});
builder = getApplicationBuilder();

const mainDi = builder.mainDi;

Expand Down Expand Up @@ -113,8 +110,8 @@ describe("Refresh Cluster Accessibility Technical Tests", () => {

// NOTE: I don't know why these are all are required to get the tests to pass
await flushPromises();
await delay(50);
await flushPromises();

console.log((process as any)._getActiveHandles());
});

it("requests if cluster has admin permissions", async () => {
Expand Down

0 comments on commit b3773c8

Please sign in to comment.