Skip to content

Commit

Permalink
Configurable prefix for test-runner
Browse files Browse the repository at this point in the history
This small change allows the test runner address prefix to be a
configurable value.
  • Loading branch information
jkilpatr committed May 18, 2021
1 parent 1634c7c commit 4204831
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion orchestrator/test_runner/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ const OPERATION_TIMEOUT: Duration = Duration::from_secs(30);
const TOTAL_TIMEOUT: Duration = Duration::from_secs(300);

lazy_static! {
static ref ADDRESS_PREFIX: String =
env::var("ADDRESS_PREFIX").unwrap_or_else(|_| CosmosAddress::DEFAULT_PREFIX.to_owned());
static ref COSMOS_NODE_GRPC: String =
env::var("COSMOS_NODE_GRPC").unwrap_or_else(|_| "http://localhost:9090".to_owned());
static ref COSMOS_NODE_ABCI: String =
Expand Down Expand Up @@ -106,7 +108,7 @@ pub async fn main() {
let contact = Contact::new(
COSMOS_NODE_GRPC.as_str(),
OPERATION_TIMEOUT,
CosmosAddress::DEFAULT_PREFIX,
ADDRESS_PREFIX.as_str(),
)
.unwrap();

Expand Down

0 comments on commit 4204831

Please sign in to comment.