forked from p34709852/monkey
UT: Use SocketAddress.from_string() in test_handle_agent_registration.py
This commit is contained in:
parent
d1199fdab2
commit
9b4de6bab8
|
@ -27,12 +27,14 @@ MACHINE = Machine(
|
|||
network_interfaces=[IPv4Interface("192.168.2.2/24")],
|
||||
)
|
||||
|
||||
IP = "192.168.1.1:5000"
|
||||
|
||||
AGENT_REGISTRATION_DATA = AgentRegistrationData(
|
||||
id=AGENT_ID,
|
||||
machine_hardware_id=MACHINE.hardware_id,
|
||||
start_time=0,
|
||||
parent_id=None,
|
||||
cc_server=SocketAddress(ip="192.168.1.1", port="5000"),
|
||||
cc_server=SocketAddress.from_string(IP),
|
||||
network_interfaces=[IPv4Interface("192.168.1.2/24")],
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue