diff --git a/tests/unit-test-client.c b/tests/unit-test-client.c index d0b243d02..fdf5c26ed 100644 --- a/tests/unit-test-client.c +++ b/tests/unit-test-client.c @@ -489,9 +489,8 @@ int main(int argc, char *argv[]) INVALID_SERVER_ID); ASSERT_TRUE(rc == -1 && errno == ETIMEDOUT, ""); - rc = modbus_set_slave(ctx, MODBUS_BROADCAST_ADDRESS); - ASSERT_TRUE(rc != -1, "Invalid broacast address"); + ASSERT_TRUE(rc != -1, "Invalid broadcast address"); rc = modbus_read_registers(ctx, UT_REGISTERS_ADDRESS, UT_REGISTERS_NB, tab_rp_registers);