feat(natpmp): rpc error contain all failed attempt messages
This commit is contained in:
@@ -49,7 +49,8 @@ func Test_Client_AddPortMapping(t *testing.T) {
|
||||
initialConnectionDuration: time.Millisecond,
|
||||
exchanges: []udpExchange{{close: true}},
|
||||
err: ErrConnectionTimeout,
|
||||
errMessage: "executing remote procedure call: connection timeout: after 1ms",
|
||||
errMessage: "executing remote procedure call: connection timeout: failed attempts: " +
|
||||
"read udp 127.0.0.1:[1-9][0-9]{0,4}->127.0.0.1:[1-9][0-9]{0,4}: i/o timeout \\(try 1\\)",
|
||||
},
|
||||
"add_udp": {
|
||||
ctx: context.Background(),
|
||||
|
||||
Reference in New Issue
Block a user