Skip to content

Conversation

@asonix
Copy link
Contributor

@asonix asonix commented Nov 10, 2025

PR Type

Tests

PR Checklist

  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • A changelog entry has been made for the appropriate packages.
  • Format code with the nightly rustfmt (cargo +nightly fmt).

Overview

Add tests for MessageStream and AggregatedMessageStream (previous PR was misnamed, it tested StreamingBody)
One of the included AggregatedMessageStream tests fails and is ignored, but should pass with #607

@robjtede robjtede added B-semver-norelease marks that code change does not require a release A-ws Project: actix-ws labels Nov 11, 2025
Comment on lines 229 to 232
tokio::runtime::Builder::new_current_thread()
.build()
.unwrap()
.block_on(async move {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just wondering... this is effectively the tokio::test macro, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. Looking at the docs it seems tokio calls .enable_all() on the builder and we don't need that, but it probably doesn't hurt

@robjtede robjtede merged commit ab2e029 into actix:main Nov 11, 2025
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ws Project: actix-ws B-semver-norelease marks that code change does not require a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants