Skip to content

Commit

Permalink
Fix tests broken by new Response::write paramater
Browse files Browse the repository at this point in the history
  • Loading branch information
connorslade committed Sep 9, 2024
1 parent d1a3a14 commit 9304e37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ impl<State: 'static + Send + Sync> Context<State> {
/// thread::spawn(move || {
/// Response::new()
/// .text("Hello from another thread")
/// .write(socket, &[])
/// .write(socket, &[], true)
/// .unwrap();
/// });
/// Ok(())
Expand Down
2 changes: 1 addition & 1 deletion lib/proto/server_sent_events/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,6 @@ mod test {
assert_eq!(event.to_string(), "event: event\ndata: \n\n");

let event = Event::new("update").id(1).data("Hello");
assert_eq!(event.to_string(), "id: 1\nevent: update\ndata: Hello\n\n");
assert_eq!(event.to_string(), "event: update\ndata: Hello\nid: 1\n\n");
}
}

0 comments on commit 9304e37

Please sign in to comment.