diff --git a/tests/stub/routing/test_routing_v4x4.py b/tests/stub/routing/test_routing_v4x4.py index ea4f66db5..892f05abb 100644 --- a/tests/stub/routing/test_routing_v4x4.py +++ b/tests/stub/routing/test_routing_v4x4.py @@ -2812,8 +2812,13 @@ def test_should_enforce_pool_size_per_cluster_member(self): session2 = driver.session("w", database=self.adb) - with self.assertRaises(types.DriverError) as exc: - session2.begin_transaction() + if self.driver_supports_features(types.Feature.OPT_EAGER_TX_BEGIN): + with self.assertRaises(types.DriverError) as exc: + session2.begin_transaction() + else: + with self.assertRaises(types.DriverError) as exc: + tx = session2.begin_transaction() + list(tx.run("RETURN 1 as n")) if get_driver_name() in ["java"]: self.assertEqual(