refactor:cleanup

This commit is contained in:
floor-licker
2025-10-20 19:10:31 -04:00
parent 57ac3a5e16
commit 5e5bea59b4
4 changed files with 69 additions and 69 deletions
+20 -20
View File
@@ -5,18 +5,18 @@
set -e
echo "🚀 Running polyfill-rs integration tests..."
echo "Running polyfill-rs integration tests..."
echo "=========================================="
# Check if we have the required environment variables
if [ -z "$POLYMARKET_PRIVATE_KEY" ]; then
echo "⚠️ Warning: POLYMARKET_PRIVATE_KEY not set"
echo "Warning: POLYMARKET_PRIVATE_KEY not set"
echo " Some tests will be skipped (authentication, order management, WebSocket)"
echo " Set POLYMARKET_PRIVATE_KEY to run all tests"
fi
if [ -z "$POLYMARKET_API_KEY" ] || [ -z "$POLYMARKET_API_SECRET" ] || [ -z "$POLYMARKET_API_PASSPHRASE" ]; then
echo "⚠️ Warning: API credentials not set"
echo "Warning: API credentials not set"
echo " Set POLYMARKET_API_KEY, POLYMARKET_API_SECRET, and POLYMARKET_API_PASSPHRASE"
echo " to test order management functionality"
fi
@@ -38,34 +38,34 @@ cargo test --test integration_tests -- --nocapture
if [ $? -eq 0 ]; then
echo ""
echo "🎉 All integration tests passed!"
echo "All integration tests passed!"
echo ""
echo "Test Summary:"
echo " API connectivity"
echo " Market data endpoints"
echo " Error handling"
echo " Rate limiting"
echo " API compatibility"
echo " Performance characteristics"
echo " API connectivity"
echo " Market data endpoints"
echo " Error handling"
echo " Rate limiting"
echo " API compatibility"
echo " Performance characteristics"
if [ -n "$POLYMARKET_PRIVATE_KEY" ]; then
echo " Authentication"
echo " Advanced client features"
echo " WebSocket connectivity"
echo " Authentication"
echo " Advanced client features"
echo " WebSocket connectivity"
if [ -n "$POLYMARKET_API_KEY" ]; then
echo " Order management"
echo " Order management"
else
echo " ⚠️ Order management (skipped - no API credentials)"
echo " Order management (skipped - no API credentials)"
fi
else
echo " ⚠️ Authentication (skipped - no private key)"
echo " ⚠️ Advanced client features (skipped - no private key)"
echo " ⚠️ WebSocket connectivity (skipped - no private key)"
echo " ⚠️ Order management (skipped - no private key)"
echo " Authentication (skipped - no private key)"
echo " Advanced client features (skipped - no private key)"
echo " WebSocket connectivity (skipped - no private key)"
echo " Order management (skipped - no private key)"
fi
else
echo ""
echo "Some integration tests failed!"
echo "Some integration tests failed!"
exit 1
fi