Skip to content

Commit d4352f0

Browse files
author
thomas loubrieu
committed
make postman wait for longer
1 parent 8538b83 commit d4352f0

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

docker/postman/postman_collection.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4028,10 +4028,9 @@
40284028
"",
40294029
"const INDEX_URL = pm.environment.get(\"opensearchUrl\") + \"/en-legacy-registry/_search\";",
40304030
"const MAX_RETRIES = 20; // how many times to check",
4031-
"const RETRY_INTERVAL = 15000; // milliseconds between checks (2 seconds)",
4031+
"const RETRY_INTERVAL = 30000; // milliseconds between checks (30 seconds)",
40324032
"",
40334033
"function waitForData(retriesLeft) {",
4034-
" console.log(\"Checking request result on URL: ${INDEX_URL}\");",
40354034
" pm.sendRequest({",
40364035
" url: INDEX_URL,",
40374036
" method: 'GET',",
@@ -4079,7 +4078,8 @@
40794078
"waitForData(MAX_RETRIES);"
40804079
],
40814080
"type": "text/javascript",
4082-
"packages": {}
4081+
"packages": {},
4082+
"requests": {}
40834083
}
40844084
},
40854085
{
@@ -4096,13 +4096,14 @@
40964096
"",
40974097
"var resp = pm.response.json();",
40984098
"",
4099-
"pm.test(\"C2723010 equal 50 synchronized products, dev mode, one page\", () => {",
4100-
" pm.expect(resp.hits.total.value).to.be.equal(50); ",
4099+
"pm.test(\"C2723010 equal 100 synchronized products, dev mode, one page\", () => {",
4100+
" pm.expect(resp.hits.total.value).to.be.equal(100); ",
41014101
"});",
41024102
""
41034103
],
41044104
"type": "text/javascript",
4105-
"packages": {}
4105+
"packages": {},
4106+
"requests": {}
41064107
}
41074108
}
41084109
],

0 commit comments

Comments
 (0)