Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ class SSLStageSuite extends BlazeTestSuite {
} yield ()
}

test(testSuitePrefix + " should split large buffers") {
test((testSuitePrefix + " should split large buffers").flaky) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It makes me whaaaat

test(testSuitePrefix + " should split large buffers".flaky) {} // compiles but doesn't work properly

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

though nothing new, silly type-weakness of string concatenation

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Oh, good find. I always thought it was odd that operator went on the String in the first place.

// See https://github.com/http4s/blaze/pull/771 for a deeper
// analysis of the flake and possible solutions.
val (headEng, stageEng) = mkClientServerEngines
val s = "Fo" * (stageEng.getSession.getPacketBufferSize * 0.75).toInt

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ import scala.util.control.NonFatal

abstract class BlazeTestSuite extends FunSuite with BlazeAssertions {
implicit val executionContext: ExecutionContext = ExecutionContext.Implicits.global

// allow flaky tests on ci
override def munitFlakyOK: Boolean = sys.env.contains("CI")
}

trait BlazeAssertions { self: Assertions =>
Expand Down