Skip to content

Commit cbeb386

Browse files
polybassagpotter2
authored andcommitted
CI-stabilization: Add retry_test to windows.uts 'Ping' testcase
1 parent ad6409b commit cbeb386

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test/windows.uts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,13 @@ True
101101
= Ping
102102
~ netaccess needs_root
103103

104-
with conf.L3socket() as a:
105-
answer = a.sr1(IP(dst="www.google.com", ttl=128)/ICMP(id=1, seq=seq)/"abcdefghijklmnopqrstuvwabcdefghi", timeout=2)
106-
answer.show()
107-
assert ICMP in answer
104+
def _test():
105+
with conf.L3socket() as a:
106+
answer = a.sr1(IP(dst="www.google.com", ttl=128)/ICMP(id=1, seq=seq)/"abcdefghijklmnopqrstuvwabcdefghi", timeout=2)
107+
answer.show()
108+
assert ICMP in answer
109+
110+
retry_test(_test)
108111

109112
= DNS lookup
110113
~ netaccess needs_root require_gui

0 commit comments

Comments
 (0)