Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
yngvar-antonsson authored Mar 20, 2024
1 parent c4566cd commit 3110969
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/integration/pool_connect_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ function g.test_identity()

-- netbox.connect implicitly calls fiber.create(...)
-- so there would be one context switch
t.assert_equals(csw1 + 1, csw2)
-- changed in 2.11: netbox.connect doesn't yield
if not helpers.tarantool_version_ge('2.11.2') then
t.assert_equals(csw1 + 1, csw2)
end
t.assert_equals(err, nil)
t.assert_covers(conn, {state = 'initial'})

Expand Down Expand Up @@ -91,7 +94,10 @@ function g.test_errors()

-- netbox.connect implicitly calls fiber.create (+1 context switch)
-- and calls cond:wait(0) (wait for connection active state) (+1 context switch)
t.assert_equals(csw1 + 2, csw2)
-- changed in 2.11: netbox.connect doesn't yield
if not helpers.tarantool_version_ge('2.11.2') then
t.assert_equals(csw1 + 2, csw2)
end
t.assert_equals(conn, nil)
t.assert_covers(err, {
class_name = 'NetboxConnectError',
Expand Down

0 comments on commit 3110969

Please sign in to comment.