Openbravo Issue Tracking System - Retail Modules
View Issue Details
0055529Retail ModulesAdyenpublic2024-05-20 16:142024-05-20 17:28
adrianromero 
adrianromero 
normalminorhave not tried
newopen 
5
 
 
No
0055529: Adyen unit tests sleep for more than four seconds
Adyen unit tests make use of the mock rest function *OB.ADYMOCKREST.restRequest*
This function resolves in 2 seconds because a sleep in the mocked request function.
Execute

 npm run test modules/org.openbravo.retail.adyenprovider

And observe the time the tests exectution take. For example:

-> % npm run test modules/org.openbravo.retail.adyenprovider
                                                                                                                                                                                               
> test
> $npm_package_config_test modules/org.openbravo.retail.adyenprovider
                                                                                                                                                                                               
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme [^]
 PASS modules/org.openbravo.retail.adyenprovider/web-test/provider/AdyenPrintReceipt.test.js
 PASS modules/org.openbravo.retail.adyenprovider/web-test/provider/AdyenRestRequest.test.js
 PASS modules/org.openbravo.retail.adyenprovider/web-test/provider/AdyenProvider.test.js

Test Suites: 3 passed, 3 total
Tests: 23 passed, 23 total
Snapshots: 0 total
Time: 5.339 s
Ran all test suites matching /modules\/org.openbravo.retail.adyenprovider/i.

No tags attached.
Issue History
2024-05-20 16:14adrianromeroNew Issue
2024-05-20 16:14adrianromeroAssigned To => Triage Platform Conn
2024-05-20 16:14adrianromeroTriggers an Emergency Pack => No
2024-05-20 16:17hgbotNote Added: 0164831
2024-05-20 17:28adrianromeroAssigned ToTriage Platform Conn => adrianromero

Notes
(0164831)
hgbot   
2024-05-20 16:17   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.adyenprovider/-/merge_requests/41 [^]