Skip to content

Commit 44ce625

Browse files
committed
Change smoketest to reflect new behaviour
1 parent 429e1fc commit 44ce625

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

smoketests/tests/client_connected_error_rejects_connection.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,19 @@ class ClientDisconnectedErrorStillDeletesStClient(Smoketest):
5555
"""
5656

5757
def test_client_disconnected_error_still_deletes_st_client(self):
58+
# The st_client table should only have the data of the current connection
5859
self.subscribe("select * from all_u8s", n=0)()
5960

6061
logs = self.logs(100)
6162
self.assertIn('This should be called, but the `st_client` row should still be deleted', logs)
6263

6364
sql_out = self.spacetime("sql", self.database_identity, "select * from st_client")
64-
self.assertMultiLineEqual(sql_out, """ identity | connection_id
65-
----------+---------------
66-
""")
65+
row = []
66+
# Get only the rows with numeric data
67+
# identity | connection_id
68+
# ------------------------------------------------------------------------------+-----------------------------------------
69+
for x in sql_out.splitlines()[1:]:
70+
x = x.split("|")[0].strip()
71+
if x.isdigit():
72+
row.append(x)
73+
self.assertEqual(len(row), 1)

0 commit comments

Comments
 (0)