From 64d584a10fc46b49078c3b086adc22f8fdf4f7ca Mon Sep 17 00:00:00 2001 From: Ernst-Christoph Schrewe Date: Mon, 19 Aug 2024 14:26:42 +0200 Subject: [PATCH] fix: added wait instruction for DTR --- .../Test_03-DTR/Check Customer DTR/CUSTOMER IDP CHECK.bru | 4 ++++ .../Query dtr for ShellDescriptor Customer.bru | 2 ++ 2 files changed, 6 insertions(+) diff --git a/local/bruno/puris-integration-test/Test_03-DTR/Check Customer DTR/CUSTOMER IDP CHECK.bru b/local/bruno/puris-integration-test/Test_03-DTR/Check Customer DTR/CUSTOMER IDP CHECK.bru index e1340272..f35c6c7f 100644 --- a/local/bruno/puris-integration-test/Test_03-DTR/Check Customer DTR/CUSTOMER IDP CHECK.bru +++ b/local/bruno/puris-integration-test/Test_03-DTR/Check Customer DTR/CUSTOMER IDP CHECK.bru @@ -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)); + } diff --git a/local/bruno/puris-integration-test/Test_03-DTR/Check Customer DTR/Query dtr for ShellDescriptor Customer.bru b/local/bruno/puris-integration-test/Test_03-DTR/Check Customer DTR/Query dtr for ShellDescriptor Customer.bru index 2f484338..49b6ac46 100644 --- a/local/bruno/puris-integration-test/Test_03-DTR/Check Customer DTR/Query dtr for ShellDescriptor Customer.bru +++ b/local/bruno/puris-integration-test/Test_03-DTR/Check Customer DTR/Query dtr for ShellDescriptor Customer.bru @@ -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');