Skip to content
Snippets Groups Projects
Commit ed613ce8 authored by Georgy Moshkin's avatar Georgy Moshkin :speech_balloon:
Browse files

test: disable schema fetching in tarantool connection object

This would sometimes result in exceptions being thrown if a call was
made in the middle of a schema change.
parent ff5f366d
No related branches found
No related tags found
Loading
Checking pipeline status
...@@ -282,6 +282,8 @@ class Instance: ...@@ -282,6 +282,8 @@ class Instance:
self.port, self.port,
socket_timeout=timeout, socket_timeout=timeout,
connection_timeout=timeout, connection_timeout=timeout,
connect_now=True,
fetch_schema=False,
) )
try: try:
yield c yield c
......
...@@ -132,7 +132,7 @@ def test_replication(cluster: Cluster): ...@@ -132,7 +132,7 @@ def test_replication(cluster: Cluster):
"return box.space._pico_instance:get(...):tomap()", "return box.space._pico_instance:get(...):tomap()",
instance.instance_id, instance.instance_id,
)[0] )[0]
space_cluster = conn.select("_cluster") space_cluster = conn.call("box.space._cluster:select")
expected = { expected = {
"instance_id": instance.instance_id, "instance_id": instance.instance_id,
...@@ -146,7 +146,7 @@ def test_replication(cluster: Cluster): ...@@ -146,7 +146,7 @@ def test_replication(cluster: Cluster):
} }
assert {k: v for k, v in raft_instance.items() if k in expected} == expected assert {k: v for k, v in raft_instance.items() if k in expected} == expected
assert list(space_cluster) == [ assert list(*space_cluster) == [
[1, i1.instance_uuid()], [1, i1.instance_uuid()],
[2, i2.instance_uuid()], [2, i2.instance_uuid()],
] ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment