We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d990b6 commit 1ff43c9Copy full SHA for 1ff43c9
socketioxide/tests/connect.rs
@@ -24,15 +24,15 @@ pub async fn connect_middleware() {
24
};
25
io.ns(
26
"/",
27
- { || {} }.with(handler(3)).with(handler(2)).with(handler(1)),
+ { || {} }.with(handler(1)).with(handler(2)).with(handler(3)),
28
);
29
30
let (_, mut srx) = create_ws_connection(PORT).await.split();
31
assert_ok!(srx.next().await.unwrap());
32
33
- assert_eq!(rx.recv().await.unwrap(), 3);
34
- assert_eq!(rx.recv().await.unwrap(), 2);
35
assert_eq!(rx.recv().await.unwrap(), 1);
+ assert_eq!(rx.recv().await.unwrap(), 2);
+ assert_eq!(rx.recv().await.unwrap(), 3);
36
37
let p = assert_ok!(srx.next().await.unwrap());
38
assert!(matches!(p, Text(s) if s.starts_with("40")));
0 commit comments