Fix tests.

This commit is contained in:
Gav Wood
2016-12-11 15:41:49 +01:00
parent 5bf9fa9168
commit 0e17cf8d3a
3 changed files with 8 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ fn init_logger() {
if let Ok(log) = env::var("RUST_LOG") {
let mut builder = LogBuilder::new();
builder.parse(&log);
builder.init().expect("Logger is initialized only once.");
let _ = builder.init(); // ignore errors since ./test.sh will call this multiple times.
}
}