Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SSLStageSuite #771

Open
wants to merge 1 commit into
base: series/0.23
Choose a base branch
from
Open
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 @@ -63,7 +63,7 @@ class SSLStageSuite extends BlazeTestSuite {

test(testSuitePrefix + " should split large buffers") {
val (headEng, stageEng) = mkClientServerEngines
val s = "Fo" * (stageEng.getSession.getPacketBufferSize * 0.75).toInt
val s = "Fo" * (stageEng.getSession.getPacketBufferSize * 0.45).toInt

/* The detection of splitting the buffer is seen by checking the write
* output: if its flushing, the output should only be single buffers for
Expand All @@ -87,14 +87,16 @@ class SSLStageSuite extends BlazeTestSuite {

head.sendInboundCommand(Connected)

assertFuture_(tail.startLoop()).flatMap(_ =>
assertFuture(
for {
_ <- tail.startLoop()
_ <- assertFuture(
for {
r <- Future(BufferTools.mkString(head.results))
h <- Future(head.multipleWrite)
} yield r -> h,
s + s -> false
))
)
} yield ()
}

test(testSuitePrefix + " should transcode multiple single byte buffers") {
Expand Down