accounts/keystore: use t.TempDir in test (#30052)

pull/29518/merge
Halimao 5 months ago committed by GitHub
parent 0a651f8972
commit fe0c0b04fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      accounts/keystore/account_cache_test.go

@ -325,11 +325,7 @@ func TestUpdatedKeyfileContents(t *testing.T) {
t.Parallel()
// Create a temporary keystore to test with
dir := filepath.Join(os.TempDir(), fmt.Sprintf("eth-keystore-updatedkeyfilecontents-test-%d-%d", os.Getpid(), rand.Int()))
// Create the directory
os.MkdirAll(dir, 0700)
defer os.RemoveAll(dir)
dir := t.TempDir()
ks := NewKeyStore(dir, LightScryptN, LightScryptP)

Loading…
Cancel
Save