Skip to content

Commit

Permalink
Add wait time in db_securityadmin to remove flakiness
Browse files Browse the repository at this point in the history
Signed-off-by: ANJU BHARTI <[email protected]>
  • Loading branch information
ANJU BHARTI committed Jan 1, 2025
1 parent 246b443 commit de556c8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/JDBC/expected/db_securityadmin-vu-verify.out
Original file line number Diff line number Diff line change
Expand Up @@ -1312,6 +1312,15 @@ t
~~END~~


-- Wait to sync with another session
SELECT pg_sleep(1);
go
~~START~~
void

~~END~~


-- tsql
DROP LOGIN db_securityadmin_restrictions_login;
GO
4 changes: 4 additions & 0 deletions test/JDBC/input/ownership/db_securityadmin-vu-verify.mix
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,10 @@ SELECT pg_terminate_backend(pid) FROM pg_stat_get_activity(NULL)
WHERE sys.suser_name(usesysid) = 'db_securityadmin_restrictions_login' AND backend_type = 'client backend' AND usesysid IS NOT NULL;
GO

-- Wait to sync with another session
SELECT pg_sleep(1);
go

-- tsql
DROP LOGIN db_securityadmin_restrictions_login;
GO

0 comments on commit de556c8

Please sign in to comment.