Skip to content

Commit fc6d2a9

Browse files
committed
fix: test
1 parent 875cde2 commit fc6d2a9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cmd/wutils/zip/crack_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ import (
88

99
func TestCrackPassword(t *testing.T) {
1010
home, _ := os.UserHomeDir()
11-
passwordDictPath := filepath.Join(home, ".config", "wutils", "password-dict.txt")
11+
configDir := filepath.Join(home, ".config", "wutils")
12+
passwordDictPath := filepath.Join(configDir, "password-dict.txt")
13+
14+
os.MkdirAll(configDir, 0755)
1215
os.WriteFile(passwordDictPath, []byte("test\nwrong\n123456"), 0644)
1316

1417
type args struct {

0 commit comments

Comments
 (0)