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

DISPATCH-1383: Policy tests hanging on some platforms - init race #534

Closed
wants to merge 1 commit into from

Conversation

ChugR
Copy link
Contributor

@ChugR ChugR commented Jul 5, 2019

Policy tests have a subclass of FakeBroker.
At the start of subclass init the code calls FakeBroker init.
FakeBroker init starts a thread that runs the main loop.

In the failing cases the FakeBroker main loop runs before the
sublcasses complete their init functions. Then the main loop
fails because class variables don't exist yet.

The fix is to defer running FakeBroker init until the end of subclass init.

Policy tests have a subclass of FakeBroker.
At the start of subclass init the code calls FakeBroker init.
FakeBroker init starts a thread that runs the main loop.

In the failing cases the FakeBroker main loop runs before the
sublcasses complete their init functions. Then the main loop
fails because class variables don't exist yet.

The fix is to defer running FakeBroker init until the end of subclass init.
@asfgit asfgit closed this in f227669 Jul 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant