Skip to content

Commit

Permalink
update test to expect status and kernel info reply
Browse files Browse the repository at this point in the history
  • Loading branch information
kafonek committed Nov 23, 2023
1 parent 094f91f commit 20f73b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,8 @@ async fn test_kernel_info(_ipykernel_process: Option<Child>) {
let action = client.kernel_info_request(handlers).await;
action.await;
let counts = handler.counts.lock().await;
assert_eq!(counts.get("kernel_info"), Some(&1));
let mut expected = HashMap::new();
expected.insert("kernel_info".to_string(), 1);
expected.insert("status".to_string(), 2);
assert_eq!(*counts, expected);
}

0 comments on commit 20f73b9

Please sign in to comment.