Skip to content

Commit

Permalink
test: Fix workspace phase check
Browse files Browse the repository at this point in the history
  • Loading branch information
astefanutti committed Jan 25, 2023
1 parent 1fc25a3 commit ac010a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/support/test.go
Expand Up @@ -26,6 +26,7 @@ import (

corev1 "k8s.io/api/core/v1"

corev1alpha1 "github.com/kcp-dev/kcp/pkg/apis/core/v1alpha1"
tenancyv1alpha1 "github.com/kcp-dev/kcp/pkg/apis/tenancy/v1alpha1"
)

Expand Down Expand Up @@ -106,7 +107,7 @@ func (t *T) NewTestWorkspace(options ...Option[*tenancyv1alpha1.Workspace]) *ten
})
t.T().Logf("Creating workspace %v:%v", TestWorkspace, workspace.Name)
t.Eventually(Workspace(t, workspace.Name), TestTimeoutShort).
Should(gomega.WithTransform(WorkspacePhase, gomega.Equal(tenancyv1alpha1.WorkspaceInitialized)))
Should(gomega.WithTransform(WorkspacePhase, gomega.Equal(corev1alpha1.LogicalClusterPhaseReady)))
return workspace
}

Expand Down

0 comments on commit ac010a4

Please sign in to comment.