Remove content_topic test
This commit is contained in:
parent
ac5ef9f171
commit
e2ef9f407f
|
@ -19,27 +19,3 @@ pub use general::{
|
|||
};
|
||||
|
||||
pub use events::{waku_set_event_callback, Event, Signal, WakuMessageEvent};
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use std::ffi::CStr;
|
||||
use std::os::raw::c_char;
|
||||
use waku_sys::waku_content_topic;
|
||||
|
||||
#[test]
|
||||
fn content_topic() {
|
||||
let topic = unsafe {
|
||||
waku_content_topic(
|
||||
"foo_bar".as_ptr() as *mut c_char,
|
||||
1,
|
||||
"foo_topic".as_ptr() as *mut c_char,
|
||||
"rfc26".as_ptr() as *mut c_char,
|
||||
)
|
||||
};
|
||||
|
||||
let topic_str = unsafe { CStr::from_ptr(topic) }
|
||||
.to_str()
|
||||
.expect("Decoded return");
|
||||
println!("{}", topic_str);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue