Entries can remain in v$sql_monitor for a period of time so only look at the

executing one.
This commit is contained in:
Anthony Tuininga 2018-11-02 15:45:09 -06:00
parent 851c9a4650
commit ae8b4f84aa
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@ class TestConnection(TestCase):
if CLIENT_VERSION >= (12, 1):
self.__VerifyAttributes(connection, "dbop", "cx_OracleTest_DBOP",
"select dbop_name from v$sql_monitor "
"where sid = sys_context('userenv', 'sid')")
"where sid = sys_context('userenv', 'sid')"
"and status = 'EXECUTING'")
self.__VerifyAttributes(connection, "action", "cx_OracleTest_Action",
"select sys_context('userenv', 'action') from dual")
self.__VerifyAttributes(connection, "module", "cx_OracleTest_Module",