mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 19:09:43 +00:00
chore: auto format code
This commit is contained in:
@@ -333,7 +333,7 @@ func TestScanPathPermissionError(t *testing.T) {
|
||||
if err := os.Mkdir(lockedDir, 0o755); err != nil {
|
||||
t.Fatalf("create locked dir: %v", err)
|
||||
}
|
||||
|
||||
|
||||
// Create a file inside before locking, just to be sure
|
||||
if err := os.WriteFile(filepath.Join(lockedDir, "secret.txt"), []byte("shh"), 0o644); err != nil {
|
||||
t.Fatalf("write secret: %v", err)
|
||||
@@ -350,7 +350,7 @@ func TestScanPathPermissionError(t *testing.T) {
|
||||
|
||||
var files, dirs, bytes int64
|
||||
current := ""
|
||||
|
||||
|
||||
// Scanning the locked dir itself should fail
|
||||
_, err := scanPathConcurrent(lockedDir, &files, &dirs, &bytes, ¤t)
|
||||
if err == nil {
|
||||
@@ -359,4 +359,4 @@ func TestScanPathPermissionError(t *testing.T) {
|
||||
if !os.IsPermission(err) {
|
||||
t.Logf("unexpected error type: %v", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user