mirror of
https://github.com/logos-messaging/logos-messaging-rust-bindings.git
synced 2026-01-02 22:13:07 +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};
|
||||
// crates
|
||||
// internal
|
||||
use super::config::NodeConfig;
|
||||
use super::config::WakuNodeConfig;
|
||||
use crate::general::{JsonResponse, Result};
|
||||
|
||||
/// Instantiates a Waku node
|
||||
/// 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 s_config = serde_json::to_string(&config)
|
||||
.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,
|
||||
};
|
||||
|
||||
#[test]
|
||||
fn waku_new_default() {
|
||||
assert!(waku_new(None).unwrap());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn waku_flow() {
|
||||
waku_new(None).unwrap();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user