Skip to content

Commit

Permalink
using temDir() and removing testfiles
Browse files Browse the repository at this point in the history
Signed-off-by: Philip-21 <[email protected]>
  • Loading branch information
Philip-21 committed Feb 14, 2024
1 parent fc98ebb commit 1cc11e9
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 77 deletions.
5 changes: 3 additions & 2 deletions internal/blockchain/ethereum/accounts_test.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
package ethereum

import (
"path/filepath"
"testing"

"github.com/stretchr/testify/assert"
)

func TestCreateWalletFile(t *testing.T) {
dir := "walletdata"
dir := t.TempDir()

prefix := "WalletPair"
outputDirectory := dir + "wallet.json"
outputDirectory := filepath.Join(dir + "wallet.json")
password := "26371628355334###"
t.Run("TestCreateWalletFile", func(t *testing.T) {
keypair, filename, err := CreateWalletFile(outputDirectory, prefix, password)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

func TestWriteConfig(t *testing.T) {
dir := "testdata"
dir := t.TempDir()
configFilename := dir + filepath.Join("config.yaml")
extraEvmConfigPath := dir + filepath.Join("/conflate/extra.yaml")
p := Config{}
Expand Down
Empty file.

This file was deleted.

29 changes: 0 additions & 29 deletions internal/blockchain/ethereum/geth/testdata/genesis1_output.json

This file was deleted.

29 changes: 0 additions & 29 deletions internal/blockchain/ethereum/geth/testdata/genesis2_output.json

This file was deleted.

14 changes: 0 additions & 14 deletions internal/blockchain/ethereum/geth/testdata/test_contracts.json

This file was deleted.

This file was deleted.

0 comments on commit 1cc11e9

Please sign in to comment.