Merge tests

This commit is contained in:
Daniel Sanchez Quiros 2022-09-30 19:22:29 +02:00
parent b9b2ad9d94
commit f6bba1f183

View File

@ -87,24 +87,16 @@ mod test {
fn waku_flow() {
waku_new(None).unwrap();
waku_start().unwrap();
waku_stop().unwrap();
}
#[test]
fn waku_id() {
waku_new(None).unwrap();
// test peer id call, since we cannot start different instances of the node
let id = waku_peer_id().unwrap();
dbg!(&id);
assert!(!id.is_empty());
waku_stop().unwrap();
}
#[test]
fn waku_address() {
waku_new(None).unwrap();
// test addresses, since we cannot start different instances of the node
let addresses = waku_listen_addressses().unwrap();
dbg!(&addresses);
assert!(!addresses.is_empty());
waku_stop().unwrap();
}
}