Compare commits

...

3 Commits

Author SHA1 Message Date
Aram Sargsyan
07b14a43eb Test 2023-07-04 11:22:27 +00:00
Aram Sargsyan
5c37f8b68b fixup! Run test_send_timeout in a loop 2023-07-04 11:22:27 +00:00
Michal Nowak
4582489adc Run test_send_timeout in a loop 2023-06-22 15:10:33 +02:00
3 changed files with 7 additions and 3 deletions

View File

@@ -355,7 +355,7 @@ stages:
- *find_pytest
- cd bin/tests/system
- >
"$PYTEST" --junit-xml="$CI_PROJECT_DIR"/junit.xml -n "$TEST_PARALLEL_JOBS" | tee pytest.out.txt
while "$PYTEST" -k test_send_timeout ; do true; done | tee pytest.out.txt
- '( ! grep -F "grep: warning:" pytest.out.txt )'
after_script:
- *display_pytest_failures
@@ -363,7 +363,7 @@ stages:
.system_test_legacy: &system_test_legacy
script:
- cd bin/tests/system
- make -j${TEST_PARALLEL_JOBS:-1} -k check V=1
- while ./legacy.run.sh timeouts ; do true; done
- if git rev-parse > /dev/null 2>&1; then ( ! grep "^I:.*:file.*not removed$" *.log ); fi
- '( ! grep -F "grep: warning:" *.log )'
after_script:

View File

@@ -1 +1 @@
-m record -c named.conf -d 1 -D timeouts-ns1 -X named.lock -g -T maxcachesize=2097152
-m record -c named.conf -d 99 -D timeouts-ns1 -X named.lock -g -T maxcachesize=2097152

View File

@@ -206,9 +206,13 @@ def test_send_timeout(named_port):
with pytest.raises(EOFError):
try:
(sbytes, stime) = dns.query.send_tcp(sock, msg, timeout())
print(sbytes, stime)
(response, rtime) = dns.query.receive_tcp(sock, timeout())
print(response, rtime)
except ConnectionError as e:
raise EOFError from e
except Exception as e:
print(e)
@pytest_custom_markers.long_test