Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
test(e2e): give the held replication wait a minute on busy runners
varonix4d7505d7901a
diff --git a/tests/suites/secretmanager/approvals/secret_change_policy_test.go b/tests/suites/secretmanager/approvals/secret_change_policy_test.goindex 4afb8fe321..f1207255ad 100644--- a/tests/suites/secretmanager/approvals/secret_change_policy_test.go+++ b/tests/suites/secretmanager/approvals/secret_change_policy_test.go@@ -3,6 +3,7 @@ package approvals_testimport ("net/http""testing"+ "time""github.com/Infisical/infisical/tests/clients/api""github.com/Infisical/infisical/tests/fakes/license"@@ -136,7 +137,9 @@ func TestSecretApprovalPolicy_Enforce(t *testing.T) {secretmanager.CreateImport(t, proj, "dev", secretmanager.Location{Env: "prod", Path: "/"}, secretmanager.Replicated())// Assert- wait.Until(t, "the replication to open a change request", func() bool { return openRequestCount(t, proj) == 1 })+ // One worker serves every tenant's replication jobs, so a run can queue behind others.+ wait.Until(t, "the replication to open a change request", func() bool { return openRequestCount(t, proj) == 1 },+ wait.Timeout(60*time.Second))held := getRequest(t, proj, onlyOpenRequest(t, proj))require.Equal(t, []change{{Op: "create", Key: "API_KEY"}}, held.Changes)listed, err := proj.Tenant().Admin.API.ListSecretsV4WithResponse(t.Context(), &api.ListSecretsV4Params{