diff options
author | Bas van Kervel <basvankervel@ziggo.nl> | 2015-05-12 20:24:11 +0800 |
---|---|---|
committer | Bas van Kervel <basvankervel@ziggo.nl> | 2015-05-12 20:24:11 +0800 |
commit | b79dd188d916da7adbf448dc27b0c59a04e0938d (patch) | |
tree | 7980ae848a916171fbc65fb958eebdf0c98406dc /core | |
parent | d82caa5ce38705d2dcdc2ba15c93df9325504e34 (diff) | |
download | go-tangerine-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.gz go-tangerine-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.zst go-tangerine-b79dd188d916da7adbf448dc27b0c59a04e0938d.zip |
replaced several path.* with filepath.* which is platform independent
Diffstat (limited to 'core')
-rw-r--r-- | core/chain_manager_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/chain_manager_test.go b/core/chain_manager_test.go index 50915459b..d6aa22a48 100644 --- a/core/chain_manager_test.go +++ b/core/chain_manager_test.go @@ -4,11 +4,12 @@ import ( "fmt" "math/big" "os" - "path" "runtime" "strconv" "testing" + "path/filepath" + "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/core/types" @@ -94,7 +95,7 @@ func testChain(chainB types.Blocks, bman *BlockProcessor) (*big.Int, error) { } func loadChain(fn string, t *testing.T) (types.Blocks, error) { - fh, err := os.OpenFile(path.Join(os.Getenv("GOPATH"), "src", "github.com", "ethereum", "go-ethereum", "_data", fn), os.O_RDONLY, os.ModePerm) + fh, err := os.OpenFile(filepath.Join(os.Getenv("GOPATH"), "src", "github.com", "ethereum", "go-ethereum", "_data", fn), os.O_RDONLY, os.ModePerm) if err != nil { return nil, err } |