Skip to content

Commit 422aaad

Browse files
committed
chore(tests): align test setup script
Update test script and dependencies after worker squash merge.
1 parent 9ebef96 commit 422aaad

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/test-comprehensive.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,8 @@ if platform_should_run_docker; then
8888
log_failure "Secure container runtime Docker tests failed"
8989
fi
9090

91-
log_info "Running challenge-orchestrator Docker tests..."
92-
if cargo test -p challenge-orchestrator --release -- --ignored 2>&1 | tee "${PLATFORM_TEST_LOG_DIR}/docker-orchestrator.log"; then
93-
log_success "Challenge orchestrator Docker tests passed"
94-
else
95-
log_failure "Challenge orchestrator Docker tests failed"
96-
fi
91+
log_info "Challenge orchestrator Docker tests not configured in workspace"
92+
log_skip "Challenge orchestrator crate unavailable; skipping"
9793
else
9894
log_skip "Docker Compose not available"
9995
fi

tests/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ platform-core = { path = "../crates/core" }
4545
platform-storage = { path = "../crates/storage" }
4646
platform-p2p-consensus = { path = "../crates/p2p-consensus" }
4747
platform-bittensor = { path = "../crates/bittensor-integration" }
48+
platform-challenge-sdk = { path = "../crates/challenge-sdk" }
4849

4950
tokio = { version = "1.40", features = ["full", "test-util"] }
5051
tempfile = "3.12"
@@ -58,3 +59,4 @@ lz4_flex = "0.11"
5859
hex = "0.4"
5960
bincode = "1.3"
6061
reqwest = { workspace = true }
62+
sp-core = { workspace = true }

tests/bittensor_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ mod integration {
682682
let metagraph = client.sync_metagraph().await.expect("sync metagraph");
683683
let uid_map = map_metagraph_hotkeys(metagraph);
684684
let (hotkey, uid) = uid_map.iter().next().expect("hotkey mapping");
685-
client.set_uid_overrides(vec![(hotkey.clone(), *uid)]);
685+
assert!(client.get_uid_for_hotkey(hotkey).is_some());
686686

687687
let mut submitter = WeightSubmitter::new(client, None);
688688
submitter.set_epoch(1);

0 commit comments

Comments
 (0)