Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions dash-spv/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,17 @@ cargo run --example filter_sync
cargo test

# Run specific test files
cargo test --test handshake_test
cargo test --test header_sync_test
cargo test --test storage_test

# Run individual test functions
cargo test --test handshake_test test_handshake_with_mainnet_peer
cargo test --test peer_test test_peer_connection

# Run tests with output
cargo test -- --nocapture

# Run single test with debug output
cargo test --test handshake_test test_handshake_with_mainnet_peer -- --nocapture
cargo test --test peer_test test_peer_connection -- --nocapture
```

### Code Quality
Expand Down Expand Up @@ -187,10 +186,10 @@ Use domain-specific error types:
**Common Debug Commands:**
```bash
# Run with tracing output
RUST_LOG=debug cargo test --test test_handshake_with_mainnet_peer -- --nocapture
RUST_LOG=debug cargo test --test peer_test test_peer_connection -- --nocapture

# Run specific test with verbose output
cargo test --test handshake_test test_handshake_with_mainnet_peer -- --nocapture --test-threads=1
# Run specific test with verbose output
cargo test --test peer_test test_peer_connection -- --nocapture --test-threads=1

# Check storage state
ls -la data*/headers/
Expand Down
112 changes: 0 additions & 112 deletions dash-spv/tests/handshake_test.rs

This file was deleted.

8 changes: 1 addition & 7 deletions dash-spv/tests/test_plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@ This document outlines a systematic testing approach for the Dash SPV client, or
- **Network**: Dash mainnet
- **Test Type**: Integration tests with real network connectivity

## 1. Network Layer Tests ✅ (3/4 passing)

### File: `tests/handshake_test.rs` (MOSTLY COMPLETED)
- [x] **Basic handshake with mainnet peer** - Tests successful connection and handshake
- [⚠️] **Handshake timeout handling** - Tests timeout behavior (timeout test needs adjustment)
- [x] **Network manager lifecycle** - Tests creation, connection state management
- [x] **Multiple connect/disconnect cycles** - Tests robustness of connection handling
## 1. Network Layer Tests

### Planned Additional Network Tests
- [ ] **Message sending and receiving** - Test basic message exchange after handshake
Expand Down
Loading