Skip to content

Commit

Permalink
[compiler-v2 framework] fixed the process blocking error in unittest (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
welbon authored Dec 5, 2024
1 parent e9b8fe6 commit d39cfeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpc/server/src/module/pubsub/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ pub async fn test_subscribe_to_pending_transactions() -> Result<()> {
txpool_service.add_txns(vec![txn]).pop().unwrap().unwrap();
let mut receiver = receiver;
let res = receiver.next().await.unwrap();
let prefix = r#"{"jsonrpc":"2.0","method":"starcoin_subscription","params":{"result":[""#;
let suffix = r#""],"subscription":0}}"#;
let prefix = r#"{"jsonrpc":"2.0","method":"starcoin_subscription","params":{"subscription":0,"result":[""#;
let suffix = r#""]}}"#;
let response = format!("{}0x{}{}", prefix, txn_id.to_hex(), suffix);
assert_eq!(res, response);
// And unsubscribe
Expand Down

0 comments on commit d39cfeb

Please sign in to comment.