Skip to content

Commit

Permalink
Fix test compile issues
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner committed Sep 14, 2020
1 parent 41c5a6b commit 46b8a8f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion beacon_node/http_api/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ impl ApiTester {
enabled: true,
listen_addr: Ipv4Addr::new(127, 0, 0, 1),
listen_port: 0,
allow_origin: None,
},
chain: Some(chain.clone()),
network_tx: Some(network_tx),
Expand Down Expand Up @@ -1412,7 +1413,7 @@ impl ApiTester {
};

self.client
.post_validator_beacon_committee_subscriptions(&subscription)
.post_validator_beacon_committee_subscriptions(&[subscription])
.await
.unwrap();

Expand Down
9 changes: 6 additions & 3 deletions beacon_node/tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use beacon_chain::StateSkipConfig;
use node_test_rig::{
environment::{Environment, EnvironmentBuilder},
eth2::types::StateId,
testing_client_config, LocalBeaconNode,
};
use types::{EthSpec, MinimalEthSpec, Slot};
Expand Down Expand Up @@ -34,10 +35,12 @@ fn http_server_genesis_state() {
let node = build_node(&mut env);
let remote_node = node.remote_node().expect("should produce remote node");

let (api_state, _root) = env
let api_state = env
.runtime()
.block_on(remote_node.http.beacon().get_state_by_slot(Slot::new(0)))
.expect("should fetch state from http api");
.block_on(remote_node.get_debug_beacon_states(StateId::Slot(Slot::new(0))))
.expect("should fetch state from http api")
.unwrap()
.data;

let mut db_state = node
.client
Expand Down

0 comments on commit 46b8a8f

Please sign in to comment.