Skip to content

Commit

Permalink
Add comment about running test against a single node
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Jul 9, 2020
1 parent dfb41c9 commit 4128382
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions light-client/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ fn sync() {

let node_address: tendermint::net::Address = "tcp://127.0.0.1:26657".parse().unwrap();

// Because our CI infrastructure can only spawn a single Tendermint node at the moment,
// we run this test against this very node as both the primary and witness.
// In a production environment, one should make sure that the primary and witness are
// different nodes, and check that the configured peer IDs match the ones returned
// by the nodes.
let mut peer_map = HashMap::new();
peer_map.insert(primary, node_address.clone());
peer_map.insert(witness, node_address);
Expand Down

0 comments on commit 4128382

Please sign in to comment.