Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply expec_err message suggestions for changed
Co-authored-by: Qi <[email protected]>
  • Loading branch information
DSharifi and ADD-SP authored Sep 20, 2025
commit fa6e2801ae4d8aa8fb15eb3796ed490a5fbc0a81
4 changes: 2 additions & 2 deletions tokio/tests/sync_watch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ async fn changed_succeeds_on_closed_channel_with_unseen_value() {

rx.changed()
.await
.expect("`changed` call does not return an error if the last value is not seen.");
.expect("should not return error as long as the current value is not seen");
}

#[tokio::test]
Expand All @@ -470,7 +470,7 @@ async fn changed_errors_on_closed_channel_with_seen_value() {

rx.changed()
.await
.expect_err("`has_changed` iff channel is closed.");
.expect_err("should return error if the tx is closed and the current value is seen");
}

#[test]
Expand Down
Loading