(&self)
| 81 | } |
| 82 | |
| 83 | fn env(&self) -> Vec<String> { |
| 84 | // Set the network otherwise we might be be able to parse addresses we created. |
| 85 | let network = current_network(); |
| 86 | let mut env = vec![ |
| 87 | format!("FM_NETWORK={}", network), |
| 88 | format!("IPC_NETWORK={}", network), |
| 89 | format!("NETWORK={}", network), |
| 90 | ]; |
| 91 | env.extend(self.env.iter().map(|(k, v)| format!("{k}={v}"))); |
| 92 | env |
| 93 | } |
| 94 | |
| 95 | /// Run a short lived container. |
| 96 | pub async fn run_cmd(&self, cmd: &str) -> anyhow::Result<Vec<String>> { |
no test coverage detected