You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
internal_dns tests don't clean up after themselves #990
It looks like the internal DNS tests spawn a separate tokio task to run the DNS server and never clean this up. They also don't clean up the files they create in $TMPDIR (which is hard to fix because the server is still running). This latter part makes it hard for us to write a check that no tests leave detritus in $TMPDIR, which makes it easy to create more tests that leave stuff there.
@rcgoodfellow, is this something you could look into? It's possible the patterns we use for Nexus integration tests will be useful here. They have a "test context" object that has a cleanup function that tears things down. We also wrote a proc macro to make it easier to use so you don't need to remember to call the cleanup function. All this might be overkill here though.
Activity
davepacheco commentedon Apr 28, 2022
@rcgoodfellow, is this something you could look into? It's possible the patterns we use for Nexus integration tests will be useful here. They have a "test context" object that has a cleanup function that tears things down. We also wrote a proc macro to make it easier to use so you don't need to remember to call the cleanup function. All this might be overkill here though.
Update Crucible and Propolis
Update Crucible and Propolis (#4282)