Skip to content

Fix bug that Promgen test sometimes fails - #793

Merged
vincent-olivert-riera merged 2 commits into
line:masterfrom
hoangpn:bug_fix/test_cases_failed_randomly
Sep 28, 2026
Merged

vincent-olivert-riera merged 2 commits into
line:masterfrom
hoangpn:bug_fix/test_cases_failed_randomly

Conversation

@hoangpn

@hoangpn hoangpn commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

We have resolved an issue causing Promgen tests to fail randomly. The root cause was the use of .first() to select a token, while the "authtoken" table lacked explicit ordering and there is also another test case which creates new token.
To address this, we modified the test script to consistently use the token with a key formatted as the username plus the suffix "_token".
The name of the failed test case was also corrected.

We have resolved an issue causing Promgen tests to fail randomly. The root cause was the
use of .first() to select a token, while the "authtoken" table lacked explicit ordering and
there is also another test case which creates new token.

To address this, we modified the test script to consistently use the token with a key
formatted as the username plus the suffix "_token".
We have revised the name of a test case to accurately reflect its content.
@hoangpn
hoangpn force-pushed the bug_fix/test_cases_failed_randomly branch from 5f13806 to 0475ec3 Compare September 28, 2026 10:29
@vincent-olivert-riera
vincent-olivert-riera merged commit 000958b into line:master Sep 28, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants