DataDog/datadog-static-analyzer

cargo test fails in a clean cloned repo

robertohuertasm opened this issue · 4 comments

Describe the bug
cargo test fails most of the time in some of the tests. Note that the behavior is not consistent. Sometime it passes all the tests.

To Reproduce
Steps to reproduce the behavior:

  1. Clean the repo
  2. cargo build
  3. cargo test

Expected behavior
All the tests to pass

Screenshots
image

Desktop (please complete the following information):

  • OS: MacOs Ventura 13.4.1

I've tried updating the javascript timeout to 10s but still the same issue. If I run the invalid_javascript test alone, it works. So I suspect it may be a problem of some shared resource. I've not looked into more details yet.

I've tested this in WSL2 and I can't reproduce it there, but it's pretty consistent in my M1.

juli1 commented

@robertohuertasm can you please try on the latest main? The issue is related to this change and should be fixed now.

Hi @juli1, fixed! 🚀