From 962ecddb3fffbe2178313de2076b5960b24f021d Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Tue, 2 May 2023 09:35:27 -0400 Subject: [PATCH] chore: Fix deployment scale tests Signed-off-by: Sebastian Malton --- .../core/src/common/k8s-api/__tests__/deployment.api.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: {