aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discover
diff options
context:
space:
mode:
authorBas van Kervel <basvankervel@ziggo.nl>2015-05-12 20:24:11 +0800
committerBas van Kervel <basvankervel@ziggo.nl>2015-05-12 20:24:11 +0800
commitb79dd188d916da7adbf448dc27b0c59a04e0938d (patch)
tree7980ae848a916171fbc65fb958eebdf0c98406dc /p2p/discover
parentd82caa5ce38705d2dcdc2ba15c93df9325504e34 (diff)
downloadgo-tangerine-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar
go-tangerine-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.gz
go-tangerine-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.bz2
go-tangerine-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.lz
go-tangerine-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.xz
go-tangerine-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.zst
go-tangerine-b79dd188d916da7adbf448dc27b0c59a04e0938d.zip
replaced several path.* with filepath.* which is platform independent
Diffstat (limited to 'p2p/discover')
-rw-r--r--p2p/discover/udp_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/p2p/discover/udp_test.go b/p2p/discover/udp_test.go
index a2bb503ff..45519f71b 100644
--- a/p2p/discover/udp_test.go
+++ b/p2p/discover/udp_test.go
@@ -9,7 +9,6 @@ import (
logpkg "log"
"net"
"os"
- "path"
"reflect"
"runtime"
"sync"
@@ -18,6 +17,7 @@ import (
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/logger"
+ "path/filepath"
)
func init() {
@@ -88,7 +88,7 @@ func (test *udpTest) waitPacketOut(validate interface{}) error {
func (test *udpTest) errorf(format string, args ...interface{}) error {
_, file, line, ok := runtime.Caller(2) // errorf + waitPacketOut
if ok {
- file = path.Base(file)
+ file = filepath.Base(file)
} else {
file = "???"
line = 1