Skip to content

Commit

Permalink
testing add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dmachard committed Jan 21, 2022
1 parent 4d796b7 commit 9fb163c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
10 changes: 7 additions & 3 deletions tests/dnsquery_dnstaptcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ async def run():
# make some dns queries to force the dns server to connect to the collector
# in some products (dnsdist), connection is after incoming dns traffic
for i in range(20):
my_resolver.resolve('www.github.com', 'a')
try:
my_resolver.resolve('www.github.com', 'a')
except: pass

# waiting for connection between collector and dns server is ok
try:
Expand All @@ -65,8 +67,10 @@ async def run():

# make some dns queries
for i in range(20):
my_resolver.resolve('www.github.com', 'a')

try:
my_resolver.resolve('www.github.com', 'a')
except: pass

# wait client response on collector
try:
await asyncio.wait_for(is_clientresponse, timeout=30.0)
Expand Down
10 changes: 7 additions & 3 deletions tests/dnsquery_dnstapunix.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ async def run():
# make some dns queries to force the dns server to connect to the collector
# in some products (dnsdist), connection is after incoming dns traffic
for i in range(20):
my_resolver.resolve('www.github.com', 'a')
try:
my_resolver.resolve('www.github.com', 'a')
except: pass

# waiting for connection between collector and dns server is ok
try:
Expand All @@ -69,8 +71,10 @@ async def run():

# make some dns queries again
for i in range(20):
my_resolver.resolve('www.github.com', 'a')

try:
my_resolver.resolve('www.github.com', 'a')
except: pass

# wait client response on collector
try:
await asyncio.wait_for(is_clientresponse, timeout=30.0)
Expand Down

0 comments on commit 9fb163c

Please sign in to comment.