Skip to content
Snippets Groups Projects
Commit 9f4c1480 authored by Rémi PAILHAREY's avatar Rémi PAILHAREY :fork_knife_plate:
Browse files

fix(tests): await longer for meilisearch

parent eb9434c0
Branches
Tags
2 merge requests!73Deploy Openshift v2,!65MEP: removed Meilisearch
Pipeline #52229 failed
...@@ -252,7 +252,7 @@ func sgeTests(t *testing.T) { ...@@ -252,7 +252,7 @@ func sgeTests(t *testing.T) {
// Try to create a consent (must pass) // Try to create a consent (must pass)
do("POST", "/api/sge/consent", sgeApiHeader, consentStr, http.StatusCreated, `{"ID":1`) do("POST", "/api/sge/consent", sgeApiHeader, consentStr, http.StatusCreated, `{"ID":1`)
// Wait for new documents to be indexed // Wait for new documents to be indexed
time.Sleep(3 * time.Second) time.Sleep(10 * time.Second)
// Try to update a consent (must pass) // Try to update a consent (must pass)
do("PUT", "/api/sge/consent/1", sgeApiHeader, `{"serviceId":123456}`, http.StatusOK, `{"ID":1`) do("PUT", "/api/sge/consent/1", sgeApiHeader, `{"serviceId":123456}`, http.StatusOK, `{"ID":1`)
// Try to get a consent that doesn't exist (must fail not found) // Try to get a consent that doesn't exist (must fail not found)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment