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() { fn waku_flow() {
waku_new(None).unwrap(); waku_new(None).unwrap();
waku_start().unwrap(); waku_start().unwrap();
waku_stop().unwrap(); // test peer id call, since we cannot start different instances of the node
}
#[test]
fn waku_id() {
waku_new(None).unwrap();
let id = waku_peer_id().unwrap(); let id = waku_peer_id().unwrap();
dbg!(&id); dbg!(&id);
assert!(!id.is_empty()); assert!(!id.is_empty());
waku_stop().unwrap();
}
#[test] // test addresses, since we cannot start different instances of the node
fn waku_address() {
waku_new(None).unwrap();
let addresses = waku_listen_addressses().unwrap(); let addresses = waku_listen_addressses().unwrap();
dbg!(&addresses); dbg!(&addresses);
assert!(!addresses.is_empty()); assert!(!addresses.is_empty());
waku_stop().unwrap(); waku_stop().unwrap();
} }
} }