Skip to content

Commit

Permalink
unable to replicate error locally, try getting workspace instead of a…
Browse files Browse the repository at this point in the history
…pplication
  • Loading branch information
ranakan19 committed Sep 30, 2024
1 parent 5e2b717 commit 8d54f27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/parallel/proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,8 @@ func TestProxyFlow(t *testing.T) {
hostAwaitWithShorterTimeout := hostAwait.WithRetryOptions(wait.TimeoutOption(time.Second * 3)) // we expect an error so we can use a shorter timeout
proxyCl, err := hostAwaitWithShorterTimeout.CreateAPIProxyClient(t, user.token, proxyWorkspaceURL)
require.NoError(t, err)
actualApp := &appstudiov1.Application{}
err = proxyCl.Get(context.TODO(), types.NamespacedName{Name: "test", Namespace: "primaryUserNamespace"}, actualApp)
actualWorkspace := &toolchainv1alpha1.Workspace{}
err = proxyCl.Get(context.TODO(), types.NamespacedName{Name: "notexist"}, actualWorkspace)
require.ErrorContains(t, err, `an error on the server ("unable to get target cluster: the requested space is not available") has prevented the request from succeeding`)
})

Expand Down

0 comments on commit 8d54f27

Please sign in to comment.