NGX_HTTP_PUSH_STREAM_CHECK_AND_FINALIZE_REQUEST_ON_ERROR(id,NGX_HTTP_PUSH_STREAM_TOO_LARGE_CHANNEL_ID,r,"push stream module: something goes very wrong, arrived on ngx_http_push_stream_publisher_body_handler with channel id too large");
assert(((expected_message-10)<published_messages)&&(published_messages<(expected_message+10)),"Message size is far from %d bytes (expected: %d, published: %d)"%([@@message_estimate_size,expected_message,published_messages]))
assert(((expected_message-10)<=published_messages)&&(published_messages<=(expected_message+10)),"Message size is far from %d bytes (expected: %d, published: %d)"%([@@message_estimate_size,expected_message,published_messages]))
EventMachine.stop
}
...
...
@@ -71,7 +71,7 @@ class TestMeasureMemory < Test::Unit::TestCase
assert_not_equal(0,pub_2.response_header.content_length,"Don't received channels statistics")
assert(((expected_channel-10)<created_channels)&&(created_channels<(expected_channel+10)),"Channel size is far from %d bytes (expected: %d, created: %d)"%([@@channel_estimate_size,expected_channel,created_channels]))
assert(((expected_channel-10)<=created_channels)&&(created_channels<=(expected_channel+10)),"Channel size is far from %d bytes (expected: %d, created: %d)"%([@@channel_estimate_size,expected_channel,created_channels]))
EventMachine.stop
}
add_test_timeout
...
...
@@ -98,7 +98,7 @@ class TestMeasureMemory < Test::Unit::TestCase
assert_not_equal(0,pub_2.response_header.content_length,"Don't received channels statistics")
assert(((expected_subscriber-10)<created_subscriber)&&(created_subscriber<(expected_subscriber+10)),"Subscriber size is far from %d bytes (expected: %d, created: %d)"%([@@subscriber_estimate_size,expected_subscriber,created_subscriber]))
assert(((expected_subscriber-20)<=created_subscriber)&&(created_subscriber<=(expected_subscriber+20)),"Subscriber size is far from %d bytes (expected: %d, created: %d)"%([@@subscriber_estimate_size,expected_subscriber,created_subscriber]))