Skip to content

Commit 4003e64

Browse files
committed
fix(ci): update domain check test to handle async function
- Wrap check_domain call in asyncio.run() since function is now async - Fixes TypeError: Object of type coroutine is not JSON serializable
1 parent 14a8ef5 commit 4003e64

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,16 @@ jobs:
5656
- name: Test domain checking functionality
5757
run: |
5858
uv run python -c "
59+
import asyncio
5960
from mcp_domain_availability.main import check_domain
6061
import json
61-
result = check_domain('nonexistentdomain12345 --domain')
62-
print('Domain check test result:')
63-
print(json.dumps(result, indent=2))
64-
assert 'total_checked' in result
65-
print('✓ Domain check functionality works')
66-
"
62+
63+
async def test_check_domain():
64+
result = await check_domain('nonexistentdomain12345 --domain')
65+
print('Domain check test result:')
66+
print(json.dumps(result, indent=2))
67+
assert 'total_checked' in result
68+
print('✓ Domain check functionality works')
69+
70+
asyncio.run(test_check_domain())
71+
"

0 commit comments

Comments
 (0)