diff options
Diffstat (limited to 'p2p/discover/udp_test.go')
-rw-r--r-- | p2p/discover/udp_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/p2p/discover/udp_test.go b/p2p/discover/udp_test.go index a2bb503ff..f175835a8 100644 --- a/p2p/discover/udp_test.go +++ b/p2p/discover/udp_test.go @@ -9,7 +9,7 @@ import ( logpkg "log" "net" "os" - "path" + "path/filepath" "reflect" "runtime" "sync" @@ -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 |