mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-16 20:55:03 +01:00
fix tests
This commit is contained in:
parent
05f08aa9db
commit
262fdc3dc6
5 changed files with 33 additions and 37 deletions
|
|
@ -19,17 +19,13 @@ async fn write_start_ok_frame() {
|
|||
locales: "en_US".into(),
|
||||
});
|
||||
|
||||
methods::write::write_method(method, &mut payload).unwrap();
|
||||
|
||||
let frame = frame::Frame {
|
||||
kind: FrameType::Method,
|
||||
channel: ChannelNum::zero(),
|
||||
payload: payload.into(),
|
||||
};
|
||||
methods::write::write_method(&method, &mut payload).unwrap();
|
||||
|
||||
let mut output = Vec::new();
|
||||
|
||||
frame::write_frame(&frame, &mut output).await.unwrap();
|
||||
frame::write_frame(&mut output, FrameType::Method, ChannelNum::zero(), &payload)
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
#[rustfmt::skip]
|
||||
let expected = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue