Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
DNS testing tools
Remoh
Commits
4510d871
Commit
4510d871
authored
Oct 26, 2020
by
Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix division by zero
parent
cf2e7f89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
homer.py
homer.py
+5
-2
tests.yaml
tests.yaml
+14
-0
No files found.
homer.py
View file @
4510d871
...
...
@@ -586,8 +586,11 @@ def run_default(name, connection, opts):
extra
=
""
if
not
opts
.
check
or
opts
.
verbose
:
time_tot
=
stop
-
start
time_per_request
=
time_tot
/
n_queries
*
1000
print
(
"
\n
Total elapsed time: %.2f seconds (%.2f ms/request%s)"
%
(
time_tot
,
time_per_request
,
extra
))
if
n_queries
>
1
:
time_per_request
=
" (%.2f ms/request%s)"
%
(
time_tot
/
n_queries
*
1000
,
extra
)
else
:
time_per_request
=
""
print
(
"
\n
Total elapsed time: %.2f seconds%s"
%
(
time_tot
,
time_per_request
))
if
opts
.
multistreams
and
opts
.
verbose
:
for
rcode
,
n
in
conn
.
finished
[
'http'
].
items
():
...
...
tests.yaml
View file @
4510d871
...
...
@@ -717,6 +717,20 @@ tests:
retcode
:
1
partstderr
:
'
certificate
verify
failed'
# Invalid behaviour - errors should be caught
###############################################################################
-
name
:
'
[doh]
Invalide
certificate'
exe
:
'
./homer.py'
markers
:
-
'
doh'
args
:
-
'
https://dot.bortzmeyer.fr'
-
'
chatons.org'
retcode
:
1
partstderr
:
'
does
not
match
target
host
name'
partstdout
:
'
Total
elapsed
time'
# Use --check option
###############################################################################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment