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
Failed CancelledInner [2 s]
Error Message:
TearDown : System.IO.IOException : The process cannot access the file '.test.download-dhacwhw4.3uz' because it is being used by another process.
Stack Trace:
--TearDown
at System.IO.FileSystem.RemoveDirectoryRecursive(String fullPath, WIN32_FIND_DATA& findData, Boolean topLevel)
at System.IO.FileSystem.RemoveDirectory(String fullPath, Boolean recursive)
at Coder.Desktop.Tests.Vpn.Service.DownloaderTest.TearDown() in D:\a\coder-desktop-windows\coder-desktop-windows\Tests.Vpn.Service\DownloaderTest.cs:line 236
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Fixescoder/internal#598
There is a possible race where if the cancellation token is expired, `Download()` never gets called and the tempFile is never disposed of (at least until GC). We also switch to synchronous IO so that a pending overlapped write won't block the deletion.
These issues can cause races in our tests when we try to clean up the directory.
seen here: https://github.com/coder/coder-desktop-windows/runs/41328916991
The text was updated successfully, but these errors were encountered: