Skip to content

Commit b6efec7

Browse files
PostgresNode::pgbench is updated (assert)
- [add] assert isinstance(proc, subprocess.Popen)
1 parent f06e3c2 commit b6efec7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/node.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1926,8 +1926,10 @@ def pgbench(self,
19261926
# should be the last one
19271927
_params.append(dbname)
19281928

1929-
proc = self._os_ops.exec_command(_params, stdout=stdout, stderr=stderr, wait_exit=True, get_process=True)
1929+
proc = self._os_ops.exec_command(_params, stdout=stdout, stderr=stderr, get_process=True)
19301930

1931+
# [2026-06-21] It is so
1932+
assert isinstance(proc, subprocess.Popen)
19311933
return proc
19321934

19331935
def pgbench_with_wait(self,

0 commit comments

Comments
 (0)