Files
mev-beta/orig/test_fixes.sh
Administrator c54c569f30 refactor: move all remaining files to orig/ directory
Completed clean root directory structure:
- Root now contains only: .git, .env, docs/, orig/
- Moved all remaining files and directories to orig/:
  - Config files (.claude, .dockerignore, .drone.yml, etc.)
  - All .env variants (except active .env)
  - Git config (.gitconfig, .github, .gitignore, etc.)
  - Tool configs (.golangci.yml, .revive.toml, etc.)
  - Documentation (*.md files, @prompts)
  - Build files (Dockerfiles, Makefile, go.mod, go.sum)
  - Docker compose files
  - All source directories (scripts, tests, tools, etc.)
  - Runtime directories (logs, monitoring, reports)
  - Dependency files (node_modules, lib, cache)
  - Special files (--delete)

- Removed empty runtime directories (bin/, data/)

V2 structure is now clean:
- docs/planning/ - V2 planning documents
- orig/ - Complete V1 codebase preserved
- .env - Active environment config (not in git)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-10 10:53:05 +01:00

50 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
echo "Testing MEV Bot Fixes - $(date)"
echo "================================"
# Build the bot
echo "Building bot..."
go build -o test-mev-bot cmd/mev-bot/main.go
# Run for 15 seconds and capture output
echo "Running bot for 15 seconds..."
LOG_LEVEL=info timeout 15 ./test-mev-bot start 2>&1 > test_output.log
echo ""
echo "Analyzing results..."
echo "-------------------"
# Check for specific errors
echo "1. Pool token fetch errors:"
grep -c "Failed to get tokens for pool" test_output.log || echo "0"
echo ""
echo "2. JSON unmarshal errors:"
grep -c "cannot unmarshal array into Go value" test_output.log || echo "0"
echo ""
echo "3. WebSocket errors:"
grep -c "notifications not supported" test_output.log || echo "0"
echo ""
echo "4. Blacklist activity:"
grep "blacklist" test_output.log | head -5
echo ""
echo "5. WebSocket fallback:"
grep -i "websocket\|polling" test_output.log | head -5
echo ""
echo "6. Overall error count:"
grep -c "ERROR" test_output.log || echo "0"
echo ""
echo "7. Sample errors (if any):"
grep "ERROR" test_output.log | head -10
# Clean up
rm -f test-mev-bot test_output.log
echo ""
echo "Test complete!"