Skip to content

Commit

Permalink
small fixes related to README and tests
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Hollensbe <[email protected]>
  • Loading branch information
erikh committed Feb 22, 2022
1 parent 394d9cf commit ae4722c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ zeronsd unsupervise 36579ad8f6a82ad3
systemctl daemon-reload
```

### Logging

Set `ZERONSD_LOG` or `RUST_LOG` to various log levels or other parameters according to the [env_logger](https://crates.io/crates/env_logger) specification for more.

### Docker

Running in docker is a little more complicated. You must be able to have a network interface you can import (joined a network) and must be able to reach `localhost:9999` on the host. At this time, for brevity's sake we are recommending running with `--net=host` until we have more time to investigate a potentially more secure solution.
Expand Down
9 changes: 6 additions & 3 deletions tests/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,12 @@ impl TestNetwork {
tokio::runtime::Handle::current().block_on(async {
self.leave().await.unwrap();
let central = self.central();
zerotier_central_api::apis::network_api::delete_network(&central, &self.identity())
.await
.unwrap_err();
zerotier_central_api::apis::network_api::delete_network(
&central,
&self.network.id.clone().unwrap(),
)
.await
.unwrap();
})
})
}
Expand Down

0 comments on commit ae4722c

Please sign in to comment.