Skip to content

Commit

Permalink
Merge branch '23.08' into 24.02
Browse files Browse the repository at this point in the history
  • Loading branch information
markus456 committed Jun 25, 2024
2 parents 5ad948d + 6d0d203 commit 557444f
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions system-test/maxtest/src/testconnections.cc
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,6 @@ int TestConnections::prepare_for_test(int argc, char* argv[])
{
rc = BROKEN_VM_FAIL;
}
else
{
// Make sure that the connections to the cluster are closed. Some tests expect that the
// connect() call will open up a new connection.
cluster->disconnect();
}
}
};

Expand Down Expand Up @@ -263,6 +257,20 @@ int TestConnections::prepare_for_test(int argc, char* argv[])
{
rc = 1;
}
else
{
// Make sure that the connections to the cluster are closed. Some tests expect that the
// connect() call will open up a new connection.
if (repl)
{
repl->disconnect();
}

if (galera)
{
galera->disconnect();
}
}

return rc;
}
Expand Down

0 comments on commit 557444f

Please sign in to comment.