[Test]Update tests (#29)
This commit is contained in:
@@ -185,8 +185,9 @@ async def test_server_connectivity(transport: Optional[str] = None) -> bool:
|
||||
logger.error(f"Connectivity test failed: {e}")
|
||||
return False
|
||||
|
||||
result = await client.connect_and_run(test_connection)
|
||||
return result
|
||||
await client.connect_and_run(test_connection)
|
||||
return True
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Failed to test server connectivity: {e}")
|
||||
return False
|
||||
@@ -211,4 +212,4 @@ if __name__ == "__main__":
|
||||
stdio_ok = await test_server_connectivity("stdio")
|
||||
print(f" Stdio connectivity: {'✓' if stdio_ok else '✗'}")
|
||||
|
||||
asyncio.run(main())
|
||||
asyncio.run(main())
|
||||
|
||||
Reference in New Issue
Block a user