mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Add assert message to test doth/stress_http_quota.py
This file is executed outside of pytest with pure python, which doesn't
do any AssertionError message rewriting like pytest. Ensure the assert
messages in this file provide a useful debug message.
(cherry picked from commit 767f4670c6)
This commit is contained in:
parent
46925fb8f5
commit
ad133d4c1c
1 changed files with 2 additions and 2 deletions
|
|
@ -161,12 +161,12 @@ class SubDIG:
|
|||
# and examining their statuses in one logical operation.
|
||||
class MultiDIG:
|
||||
def __init__(self, numdigs, http_secure=None, extra_args=None):
|
||||
assert int(numdigs) > 0
|
||||
assert int(numdigs) > 0, f"numdigs={numdigs}"
|
||||
digs = []
|
||||
for _ in range(1, int(numdigs) + 1):
|
||||
digs.append(SubDIG(http_secure=http_secure, extra_args=extra_args))
|
||||
self.digs = digs
|
||||
assert len(self.digs) == int(numdigs)
|
||||
assert len(self.digs) == int(numdigs), f"len={len(self.digs)} numdigs={numdigs}"
|
||||
|
||||
def run(self):
|
||||
for p in self.digs:
|
||||
|
|
|
|||
Loading…
Reference in a new issue