Project:
View Revisions: Issue #53548 | [ All Revisions ] [ Back to Issue ] | ||
Summary | 0053548: Credit Sales tests | ||
Revision | 2023-10-03 09:46 by justin_patterson | ||
Description | Cypress tests were failing in CI due to several discrepancies in data. The broken test has been backed out as has the broken sampledata, but the test should be re-added correctly. The specific problem is a race condition between cache creation and State messages. After the ticket is completed, the customer is updated (the used credit is changed). This creates a message in the State to trigger the call to the CustomerLoader, but the test is finished before that message is processed and the POS is reloaded as part of the next test. During that reload, there is a race condition in the creation of the cache because of that pending message, and the cache is corrupted |
||
Revision | 2023-10-03 09:42 by justin_patterson | ||
Description | Cypress tests were failing in CI due to several discrepancies in data. The broken test has been backed out as has the broken sampledata, but the test should be re-added correctly. The specific problem is a race condition between cache creation and State messages. After the ticket is completed, the customer is updated (the used credit is changed) This creates a message in the State to trigger the call to the CustomerLoader (or to update the local table, not sure) But the test is finished before that message is processed and the pos is reloaded as part of the next test during that reload, there is a race condition in the creation of the cache because of that pending message, and the cache is corrupted |
||
Revision | 2023-09-28 12:17 by justin_patterson | ||
Description | Cypress tests were failing in CI due to several discrepancies in data. The broken test has been backed out as has the broken sampledata, but the test should be re-added correctly. |
Copyright © 2000 - 2009 MantisBT Group |