Skip to content

Avoid error log in test#12837

Merged
sabiwara merged 1 commit intoelixir-lang:mainfrom
sabiwara:test-error-log
Aug 5, 2023
Merged

Avoid error log in test#12837
sabiwara merged 1 commit intoelixir-lang:mainfrom
sabiwara:test-error-log

Conversation

@sabiwara
Copy link
Copy Markdown
Contributor

@sabiwara sabiwara commented Aug 5, 2023

Very occasionally (less than 1 in 10 runs?), I'm seeing an error log when running tests:

Screenshot 2023-08-05 at 14 58 15

There's probably a race condition on a global flag, this test being async?

Note: Because I can't reproduce it consistently, it is hard to confirm that my fix works 🙃

@josevalim
Copy link
Copy Markdown
Member

This seems to be a race condition on capture_log. We are probably not waiting long enough for devices to flush.

@josevalim
Copy link
Copy Markdown
Member

Ah, no, you are correct. This is not log related. Please ship it!

@sabiwara sabiwara merged commit cb8abb5 into elixir-lang:main Aug 5, 2023
@sabiwara sabiwara deleted the test-error-log branch August 5, 2023 11:14
@sabiwara
Copy link
Copy Markdown
Contributor Author

sabiwara commented Aug 5, 2023

Ah, no, you are correct. This is not log related. Please ship it!

Thanks! Yes sorry, I shouldn't have said "log", renamed the commit 🙇

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants