mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-06 07:57:27 +08:00
fix: 修复forward不释放,一直创建新的forward,耗尽文件句柄
This commit is contained in:
@@ -124,8 +124,7 @@ func TestDevice_Forward(t *testing.T) {
|
||||
setupDevices(t)
|
||||
|
||||
for _, device := range devices {
|
||||
localPort := 61000
|
||||
err := device.Forward(localPort, 6790)
|
||||
localPort, err := device.Forward(6790)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user