Skip to content

Commit

Permalink
upd query new record cache in utils
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucaaccenture committed Sep 17, 2024
1 parent 4943287 commit 3a6e624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/integ-test/bdd-test/features/steps/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1653,7 +1653,7 @@ def query_new_record_cache(conn, adopted_db, dbRun):
if dbRun == 'Postgres':
selected_query = "SELECT * FROM cache c WHERE c.time > trunc(SYSDATE - interval '10' second) ORDER BY c.time DESC limit 1"
elif dbRun == 'Oracle':
selected_query = "SELECT * FROM cache c WHERE c.time >= (CURRENT_TIMESTAMP - INTERVAL '10' SECOND) ORDER BY c.time DESC;"
selected_query = "SELECT * FROM cache c WHERE c.time > (CURRENT_TIMESTAMP - INTERVAL '15' SECOND) ORDER BY c.time DESC"

while wait_time > 0:
exec_query = adopted_db.executeQuery(conn, selected_query)
Expand Down

0 comments on commit 3a6e624

Please sign in to comment.