blob: 933c510142c3312ec34da145c567ab6d722dbcfa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
require "test_helper"
using BinaryString
class StreamUtilsTest < Minitest::Test
def test_stream_promise
open_new_stream { |stream|
push_stream = stream.promise([])
assert(push_stream.id % 2 == 0)
assert(push_stream.id > stream.id)
assert_equal(stream, push_stream.parent)
assert_includes(stream.children, push_stream)
}
end
end
|