()
| 46 | |
| 47 | |
| 48 | async def test(): |
| 49 | print("=" * 80) |
| 50 | print("TIMEOUT FLOW TRACER") |
| 51 | print("=" * 80) |
| 52 | print() |
| 53 | |
| 54 | tm = ToolManager( |
| 55 | config_file="server_config.json", |
| 56 | servers=["monday"], |
| 57 | ) |
| 58 | |
| 59 | await tm.initialize() |
| 60 | print(f"\n✓ Initialized with effective_timeout: {tm._effective_timeout}s\n") |
| 61 | |
| 62 | print("Executing list_users_and_teams...") |
| 63 | start = time.time() |
| 64 | |
| 65 | result = await tm.execute_tool("list_users_and_teams", {"getMe": True}) |
| 66 | |
| 67 | elapsed = time.time() - start |
| 68 | print(f"\n✓ Completed in {elapsed:.2f}s") |
| 69 | print(f"Success: {result.success}") |
| 70 | if not result.success: |
| 71 | print(f"Error: {result.error}") |
| 72 | |
| 73 | await tm.close() |
| 74 | |
| 75 | |
| 76 | if __name__ == "__main__": |
no test coverage detected