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

tests: Make logging the resources deterministic #142

Merged
merged 1 commit into from
Mar 5, 2019

Conversation

dlespiau
Copy link
Member

@dlespiau dlespiau commented Mar 5, 2019

The termination of promises is non deterministic, in particular it means we
can't rely on std.log for resource1 to be called before std.log for resource2.

Instead, let's wait for all promises to be resolved and than cycle though their
values to log them to stdout.

The termination of promises is non deterministic, in particular it means we
can't rely on std.log for resource1 to be called before std.log for resource2.

Instead, let's wait for all promises to be resolved and than cycle though their
values to log them to stdout.
@dlespiau dlespiau force-pushed the 2019-03-05-resource-deterministic-loading branch from 717f141 to d5f8570 Compare March 5, 2019 15:17
@dlespiau dlespiau merged commit 4b0c830 into master Mar 5, 2019
@dlespiau dlespiau deleted the 2019-03-05-resource-deterministic-loading branch March 5, 2019 15:21
@squaremo
Copy link
Member

squaremo commented Mar 5, 2019

Awps! Good catch

(see also #110)

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