Skip to content

Commit

Permalink
raise agent test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechromancer committed Nov 16, 2023
1 parent 0777493 commit 9c9ec72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions bbot/scanner/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,10 @@ async def setup_modules(self, remove_failed=True):
remove_failed (bool): Flag indicating whether to remove modules that fail setup.
Returns:
dict: Dictionary containing lists of module names categorized by their setup status.
'succeeded' - List of modules that successfully set up.
'hard_failed' - List of modules that encountered a hard failure during setup.
'soft_failed' - List of modules that encountered a soft failure during setup.
tuple:
succeeded - List of modules that successfully set up.
hard_failed - List of modules that encountered a hard failure during setup.
soft_failed - List of modules that encountered a soft failure during setup.
Raises:
ScanError: If no output modules could be loaded.
Expand All @@ -450,7 +450,7 @@ async def setup_modules(self, remove_failed=True):
self.debug(f"Setup succeeded for {module_name} ({msg})")
succeeded.append(module_name)
elif status == False:
self.error(f"Setup hard-failed for {module_name}: {msg}")
self.warning(f"Setup hard-failed for {module_name}: {msg}")
self.modules[module_name].set_error_state()
hard_failed.append(module_name)
else:
Expand Down
4 changes: 2 additions & 2 deletions bbot/test/test_step_1/test_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ async def test_agent(agent):
global success
async with websockets.serve(_websocket_handler, "127.0.0.1", 8765):
agent_task = asyncio.create_task(agent.start())
# wait for 30 seconds
await asyncio.wait_for(scan_done.wait(), 30)
# wait for 90 seconds
await asyncio.wait_for(scan_done.wait(), 90)
assert success

await agent.start_scan("scan_to_be_cancelled", targets=["127.0.0.1"], modules=["ipneighbor"])
Expand Down

0 comments on commit 9c9ec72

Please sign in to comment.