aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/js_test.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-05-12 23:23:46 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-05-12 23:23:46 +0800
commit58d6ec689ff44232cd5d6a7cbbaad2d7a2cb44bd (patch)
treea5bfb1a0ade11c7f68d0322b9773e8c46571c455 /cmd/geth/js_test.go
parentf87094b660c95b547486e7439620e68f3d59c45f (diff)
parent899df30c24c85ca0b2dadd4cbb251a4ec5ca1a75 (diff)
downloadgo-tangerine-58d6ec689ff44232cd5d6a7cbbaad2d7a2cb44bd.tar.gz
go-tangerine-58d6ec689ff44232cd5d6a7cbbaad2d7a2cb44bd.tar.zst
go-tangerine-58d6ec689ff44232cd5d6a7cbbaad2d7a2cb44bd.zip
Merge pull request #933 from bas-vk/issue928
replaced path with platform aware filepath module
Diffstat (limited to 'cmd/geth/js_test.go')
-rw-r--r--cmd/geth/js_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/geth/js_test.go b/cmd/geth/js_test.go
index d4bf81d54..9b6d503ab 100644
--- a/cmd/geth/js_test.go
+++ b/cmd/geth/js_test.go
@@ -4,7 +4,6 @@ import (
"fmt"
"io/ioutil"
"os"
- "path"
"path/filepath"
"regexp"
"runtime"
@@ -96,7 +95,7 @@ func testJEthRE(t *testing.T) (string, *testjethre, *eth.Ethereum) {
t.Fatal(err)
}
- assetPath := path.Join(os.Getenv("GOPATH"), "src", "github.com", "ethereum", "go-ethereum", "cmd", "mist", "assets", "ext")
+ assetPath := filepath.Join(os.Getenv("GOPATH"), "src", "github.com", "ethereum", "go-ethereum", "cmd", "mist", "assets", "ext")
ds, err := docserver.New("/")
if err != nil {
t.Errorf("Error creating DocServer: %v", err)
@@ -362,7 +361,7 @@ func checkEvalJSON(t *testing.T, re *testjethre, expr, want string) error {
}
if err != nil {
_, file, line, _ := runtime.Caller(1)
- file = path.Base(file)
+ file = filepath.Base(file)
fmt.Printf("\t%s:%d: %v\n", file, line, err)
t.Fail()
}