From 480dfcbf1fc007b81a320d1fc31a10e6e5f74bf0 Mon Sep 17 00:00:00 2001 From: danpetry Date: Wed, 10 Apr 2019 16:43:27 +0200 Subject: [PATCH] Give time to allow node to set its ll address Set a delay of three seconds at the beginning of the test. Otherwise, the node will send a neighbour solicitation with a blank link local address, it won't receive a reply, and the test will fail. (cherry picked from commit b320dd7909ce83cd776b45b89d89ea3ab110f13e) --- tests/gnrc_sock_dns/tests/01-run.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/gnrc_sock_dns/tests/01-run.py b/tests/gnrc_sock_dns/tests/01-run.py index 292891f75fe9..5868b82d1dd4 100755 --- a/tests/gnrc_sock_dns/tests/01-run.py +++ b/tests/gnrc_sock_dns/tests/01-run.py @@ -13,6 +13,7 @@ import sys import subprocess import threading +import time from scapy.all import DNS, DNSQR, DNSRR, Raw, raw from testrunner import run @@ -274,6 +275,7 @@ def testfunc(child): tap = get_bridge(os.environ["TAP"]) lladdr = get_host_lladdr(tap) + time.sleep(3) try: server = Server(family=socket.AF_INET6, type=socket.SOCK_DGRAM, bind_addr=lladdr + "%" + tap, bind_port=SERVER_PORT)