summaryrefslogtreecommitdiff
path: root/pkg/test/hook_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/test/hook_test.go')
-rw-r--r--pkg/test/hook_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/test/hook_test.go b/pkg/test/hook_test.go
index 7808883..8e4fa4d 100644
--- a/pkg/test/hook_test.go
+++ b/pkg/test/hook_test.go
@@ -13,7 +13,7 @@ func TestUpperHook(t *testing.T) {
c := e.newInstance()
- c.Exec("add name T listen,addr=-:0 upper loop")
+ c.Exec("add name T listen,addr=%%0 upper loop")
conn := e.Dial("tcp", c.Get("tunnel.T.listen"))
@@ -33,7 +33,7 @@ func TestHexHook(t *testing.T) {
c := e.newInstance()
- c.Exec("add name T listen,addr=-:0 hex dial,addr=@[addr]")
+ c.Exec("add name T listen,addr=%%0 hex dial,addr=@[addr]")
listen := e.Listen("tcp", "127.0.0.1:0")
c.Set("addr", listen.Addr())