fix: linux dev workflow
This commit is contained in:
1 parent
ce9c876db6
commit
67b3ff03d0
3 files changed
+5
-4
No files matched your search
@@ -22,6 +22,7 @@ import (
|
||||
"runtime"
|
||||
"strings"
|
||||
"sync"
|
||||
"syscall"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
@@ -470,7 +471,7 @@ func (r *downloadRig) waitForJob(states ...string) update.Job {
|
||||
|
||||
func assertStagedDirGone(t *testing.T, rig *downloadRig) {
|
||||
t.Helper()
|
||||
if _, err := os.Stat(rig.stagedDir()); !os.IsNotExist(err) {
|
||||
if _, err := os.Stat(rig.stagedDir()); !os.IsNotExist(err) && !errors.Is(err, syscall.ENOTDIR) {
|
||||
t.Errorf("staged directory still exists: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user