Skip to content

Commit

Permalink
fix: added wait instruction for DTR
Browse files Browse the repository at this point in the history
  • Loading branch information
eschrewe committed Aug 19, 2024
1 parent 26a61fb commit 64d584a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ tests {
bru.setVar("CUSTOMER_BEARER_TOKEN", jsonData.access_token);
});

// when run in batch mode, this waiting period is necessary
// to allow time for updating of the DTR by the puris backend
await new Promise(resolve => setTimeout(resolve, 15000));

}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ auth:bearer {
}

script:pre-request {
await new Promise(resolve => setTimeout(resolve, 5000));

const materialNumberCustomer = bru.getEnvVar('MATERIAL_NUMBER_CUSTOMER');
const materialNumberSupplier = bru.getEnvVar('MATERIAL_NUMBER_SUPPLIER');

Expand Down

0 comments on commit 64d584a

Please sign in to comment.