diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-05-12 23:23:46 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-05-12 23:23:46 +0800 |
commit | 58d6ec689ff44232cd5d6a7cbbaad2d7a2cb44bd (patch) | |
tree | a5bfb1a0ade11c7f68d0322b9773e8c46571c455 /core | |
parent | f87094b660c95b547486e7439620e68f3d59c45f (diff) | |
parent | 899df30c24c85ca0b2dadd4cbb251a4ec5ca1a75 (diff) | |
download | dexon-58d6ec689ff44232cd5d6a7cbbaad2d7a2cb44bd.tar dexon-58d6ec689ff44232cd5d6a7cbbaad2d7a2cb44bd.tar.gz dexon-58d6ec689ff44232cd5d6a7cbbaad2d7a2cb44bd.tar.bz2 dexon-58d6ec689ff44232cd5d6a7cbbaad2d7a2cb44bd.tar.lz dexon-58d6ec689ff44232cd5d6a7cbbaad2d7a2cb44bd.tar.xz dexon-58d6ec689ff44232cd5d6a7cbbaad2d7a2cb44bd.tar.zst dexon-58d6ec689ff44232cd5d6a7cbbaad2d7a2cb44bd.zip |
Merge pull request #933 from bas-vk/issue928
replaced path with platform aware filepath module
Diffstat (limited to 'core')
-rw-r--r-- | core/chain_manager_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/chain_manager_test.go b/core/chain_manager_test.go index 50915459b..f456e4fff 100644 --- a/core/chain_manager_test.go +++ b/core/chain_manager_test.go @@ -4,7 +4,7 @@ import ( "fmt" "math/big" "os" - "path" + "path/filepath" "runtime" "strconv" "testing" @@ -94,7 +94,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 } |