Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 557680: [Instability][NAV.master] Tests are unstable in task RunALTests_CZ_Bucket1. (AUTODETECTED) - T001_PostingDateIsInNotAllowedPeriodInGLSetup #2480

Closed
wants to merge 1 commit into from

Conversation

BardurKnudsen
Copy link

@BardurKnudsen BardurKnudsen commented Dec 9, 2024

Summary

Often tests are run in parallel, and these library functions cause race conditions (=unstable tests) since they don't consider other processes. The change is just to try to insert the new no. series record.

Work Item(s)

Fixes #AB557680

Copy link

github-actions bot commented Dec 9, 2024

Could not find a linked ADO work item. Please link one by using the pattern 'AB#' followed by the relevant work item number. You may use the 'Fixes' keyword to automatically resolve the work item when the pull request is merged. E.g. 'Fixes AB#1234'

Copy link

github-actions bot commented Dec 9, 2024

Issue #557680 is not valid. Please make sure you link an issue that exists, is open and is approved.

@@ -11,7 +11,7 @@ codeunit 134510 "Library - No. Series"
NoSeries.Code := NoSeriesCode;
NoSeries.Description := NoSeriesCode;
NoSeries."Default Nos." := true;
NoSeries.Insert();
if NoSeries.Insert() then;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about exiting this instead? if you expect a new no. series it's good to get an error, if you don't care whether it already exists then you can do if-then around this call.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same below

@BardurKnudsen
Copy link
Author

Skipping this change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants