Changeset: 76aff4fc7c3d for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/76aff4fc7c3d Modified Files: testing/sqllogictest.py Branch: Aug2024 Log Message:
Thinko: setsessiontimeout is a timeout from the start of the session. diffs (22 lines): diff --git a/testing/sqllogictest.py b/testing/sqllogictest.py --- a/testing/sqllogictest.py +++ b/testing/sqllogictest.py @@ -797,12 +797,16 @@ class SQLLogic: self.approve = approve self.initfile(f, defines, run_until=run_until) nthreads = None + if self.timeout: + timeout = int((time.time() - self.starttime) + self.timeout) + else: + timeout = 0 if self.language == 'sql': - self.crs.execute(f'call sys.setsessiontimeout({self.timeout or 0})') + self.crs.execute(f'call sys.setsessiontimeout({timeout})') global hashge hashge = self.crs.execute("select * from sys.types where sqlname = 'hugeint'") == 1 else: - self.crs.execute(f'clients.setsessiontimeout({self.timeout or 0}:int)') + self.crs.execute(f'clients.setsessiontimeout({timeout}:int)') skiprest = False while True: skipping = skiprest _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org