From 2ac30c9d4b71789efb58e9c2d6aab38397c9cb6f Mon Sep 17 00:00:00 2001 From: Aleksandr Rybolovlev Date: Mon, 3 Jun 2024 14:32:11 +0200 Subject: [PATCH] Fix tests --- workspace_integration_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workspace_integration_test.go b/workspace_integration_test.go index 1deb4b5f4..818daffa4 100644 --- a/workspace_integration_test.go +++ b/workspace_integration_test.go @@ -286,8 +286,8 @@ func TestWorkspacesList(t *testing.T) { wTest, wTestCleanup := createWorkspace(t, client, orgTest) t.Cleanup(wTestCleanup) - rn, unappliedCleanup := createRunUnapplied(t, client, wTest) - t.Cleanup(unappliedCleanup) + rn, plannedCleanup := createRunWaitForStatus(t, client, wTest, RunPlanned) + t.Cleanup(plannedCleanup) wl, err := client.Workspaces.List(ctx, orgTest.Name, &WorkspaceListOptions{ CurrentRunStatus: string(RunPlanned),