Skip to content

Commit

Permalink
Update inventoryAPI.js (#653)
Browse files Browse the repository at this point in the history
Fixed  waiting until agent will get to running status
  • Loading branch information
Vadim Yarosh authored Jun 29, 2023
1 parent 59485dc commit 31c4e85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/pages/api/inventoryAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ module.exports = {
async verifyServiceExistsAndHasRunningStatus(service, serviceName) {
let responseService;

// 30 sec ping for getting created service name
for (let i = 0; i < 30; i++) {
// 60 sec ping for getting created service name
for (let i = 0; i < 60; i++) {
const services = await this.apiGetServices(service.serviceType);

responseService = services.data[service.service].find((obj) => obj.service_name === serviceName);
Expand Down

0 comments on commit 31c4e85

Please sign in to comment.