Skip to content

Commit 1a4191a

Browse files
author
SHshenhao
committed
udpate_test
1 parent 3d29a35 commit 1a4191a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

dlslime/tests/python/test_tcp.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def wrap(fn):
7272

7373

7474
def test_async_send_recv(
75-
port_a: int, port_b: int, ip_a: str = "0.0.0.0", ip_b: str = "0.0.0.0"
75+
port_a: int = 0, port_b: int = 0, ip_a: str = "0.0.0.0", ip_b: str = "0.0.0.0"
7676
):
7777
buf_a = ctypes.create_string_buffer(128)
7878
buf_b = ctypes.create_string_buffer(128)
@@ -114,7 +114,7 @@ def run_b():
114114

115115

116116
def test_async_send2recv(
117-
port_a: int, port_b: int, ip_a: str = "0.0.0.0", ip_b: str = "0.0.0.0"
117+
port_a: int = 0, port_b: int = 0, ip_a: str = "0.0.0.0", ip_b: str = "0.0.0.0"
118118
):
119119
buf_a = ctypes.create_string_buffer(32)
120120
buf_b = ctypes.create_string_buffer(32)
@@ -146,7 +146,7 @@ def run_b():
146146

147147

148148
def test_async_write(
149-
port_a: int, port_b: int, ip_a: str = "0.0.0.0", ip_b: str = "0.0.0.0"
149+
port_a: int = 0, port_b: int = 0, ip_a: str = "0.0.0.0", ip_b: str = "0.0.0.0"
150150
):
151151
buf_a = ctypes.create_string_buffer(256)
152152
buf_b = ctypes.create_string_buffer(256)
@@ -184,7 +184,7 @@ def run_b():
184184

185185

186186
def test_async_read(
187-
port_a: int, port_b: int, ip_a: str = "0.0.0.0", ip_b: str = "0.0.0.0"
187+
port_a: int = 0, port_b: int = 0, ip_a: str = "0.0.0.0", ip_b: str = "0.0.0.0"
188188
):
189189
buf_a = ctypes.create_string_buffer(256)
190190
buf_b = ctypes.create_string_buffer(256)

0 commit comments

Comments
 (0)