Skip to content

Commit 1fe4e72

Browse files
authored
Filter out curl status message in snapshot tests (#661)
1 parent 99d4257 commit 1fe4e72

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/testthat/test-resp-stream.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,10 @@ test_that("verbosity = 3 shows raw sse events", {
349349

350350
resp <- req_perform_connection(req, verbosity = 3)
351351
withr::defer(close(resp))
352-
expect_snapshot(. <- resp_stream_sse(resp))
352+
expect_snapshot(
353+
. <- resp_stream_sse(resp),
354+
transform = function(lines) lines[!grepl("^\\* ", lines)]
355+
)
353356
})
354357

355358
test_that("has a working find_event_boundary", {

0 commit comments

Comments
 (0)