mirror of
https://github.com/logos-messaging/logos-messaging-rust-bindings.git
synced 2026-01-08 17:03:08 +00:00
Removed duplicated test
This commit is contained in:
parent
d7c685c1d8
commit
239a9bc6e6
@ -3,12 +3,12 @@ use multiaddr::Multiaddr;
|
|||||||
use std::ffi::{CStr, CString};
|
use std::ffi::{CStr, CString};
|
||||||
// crates
|
// crates
|
||||||
// internal
|
// internal
|
||||||
use super::config::NodeConfig;
|
use super::config::WakuNodeConfig;
|
||||||
use crate::general::{JsonResponse, Result};
|
use crate::general::{JsonResponse, Result};
|
||||||
|
|
||||||
/// Instantiates a Waku node
|
/// Instantiates a Waku node
|
||||||
/// as per the [specification](https://rfc.vac.dev/spec/36/#extern-char-waku_newchar-jsonconfig)
|
/// as per the [specification](https://rfc.vac.dev/spec/36/#extern-char-waku_newchar-jsonconfig)
|
||||||
pub fn waku_new(config: Option<NodeConfig>) -> Result<bool> {
|
pub fn waku_new(config: Option<WakuNodeConfig>) -> Result<bool> {
|
||||||
let config = config.unwrap_or_default();
|
let config = config.unwrap_or_default();
|
||||||
let s_config = serde_json::to_string(&config)
|
let s_config = serde_json::to_string(&config)
|
||||||
.expect("Serialization from properly built NodeConfig should never fail");
|
.expect("Serialization from properly built NodeConfig should never fail");
|
||||||
@ -83,11 +83,6 @@ mod test {
|
|||||||
waku_listen_addressses, waku_peer_id, waku_start, waku_stop,
|
waku_listen_addressses, waku_peer_id, waku_start, waku_stop,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn waku_new_default() {
|
|
||||||
assert!(waku_new(None).unwrap());
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn waku_flow() {
|
fn waku_flow() {
|
||||||
waku_new(None).unwrap();
|
waku_new(None).unwrap();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user