mirror of
https://github.com/logos-messaging/logos-messaging-rust-bindings.git
synced 2026-01-07 00:13:10 +00:00
Merge tests
This commit is contained in:
parent
b9b2ad9d94
commit
f6bba1f183
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user