os: TestErrIsNotExist in error_test.go is not robust #45407
Labels
FrozenDueToAge
help wanted
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Testing
An issue that has been verified to require only test changes, not just a test failure.
Milestone
What version of Go are you using (
go version
)?In the
testErrNotExist
function, the code callsos.Chdir
expecting to fail, but does not restore the original working directory in the case where it does not fail. The following code however assumes thatos.Chdir
may not fail.The text was updated successfully, but these errors were encountered: