Skip to content

Commit

Permalink
fix: string literal in stopping_stream.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
francis2tm committed Jan 30, 2024
1 parent 7cd163a commit 4d8baa7
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions crates/edgen_server/src/util/stopping_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

use std::pin::Pin;
use std::task::{Context, Poll};

Expand Down Expand Up @@ -119,16 +119,10 @@ mod test {
// here my changes:
// - I replaced the original raw string with the concat macro
// - the right element of the assert was a vector containing one string
// namely "apple
banana".
// namely "apple\nbanana".
#[tokio::test]
async fn stopping_stream() {
let stream_content = concat!("apple
", "banana
", "coconut
", "dill
", "eggplant
",);
let stream_content = concat!("apple\n", "banana\n", "coconut\n", "dill\n", "eggplant\n",);

let content_stream =
futures::stream::iter(stream_content.lines().map(|line| line.to_string()));
Expand Down

0 comments on commit 4d8baa7

Please sign in to comment.