Fix a test assertion in supervisor_oidcclientsecret_test.go

This commit is contained in:
Ryan Richard 2022-09-23 07:59:05 -07:00
parent a7eb16dde1
commit 66b1df2dd9

View File

@ -173,7 +173,7 @@ func TestKubectlOIDCClientSecretRequest_Parallel(t *testing.T) {
require.Empty(t, stdOutString) require.Empty(t, stdOutString)
}, },
assertOnStdErr: func(t *testing.T, oidcClientName, tempFileName, stdErrString string) { assertOnStdErr: func(t *testing.T, oidcClientName, tempFileName, stdErrString string) {
require.Contains(t, fmt.Sprintf("Error from server (NotFound): error when deleting \"%s\": the server could not find the requested resource\n", tempFileName), stdErrString) require.Contains(t, stdErrString, fmt.Sprintf("Error from server (NotFound): error when deleting \"%s\": the server could not find the requested resource\n", tempFileName))
}, },
wantErr: `exit status 1`, wantErr: `exit status 1`,
}, },