diff --git a/packages/core/src/common/k8s-api/__tests__/deployment.api.test.ts b/packages/core/src/common/k8s-api/__tests__/deployment.api.test.ts index 00bf87c4e0..4db0e5bebe 100644 --- a/packages/core/src/common/k8s-api/__tests__/deployment.api.test.ts +++ b/packages/core/src/common/k8s-api/__tests__/deployment.api.test.ts @@ -32,8 +32,8 @@ describe("DeploymentApi", () => { }); describe("scale", () => { - it("requests Kubernetes API with PATCH verb and correct amount of replicas", () => { - void deploymentApi.scale({ namespace: "default", name: "deployment-1" }, 5); + it("requests Kubernetes API with PATCH verb and correct amount of replicas", async () => { + await deploymentApi.scale({ namespace: "default", name: "deployment-1" }, 5); expect(kubeJsonApi.patch).toHaveBeenCalledWith("/apis/apps/v1/namespaces/default/deployments/deployment-1/scale", { data: {