Skip to content

Commit

Permalink
logictest: deflake GRANT test
Browse files Browse the repository at this point in the history
The effects of GRANT are non-transactional and do not appear immediately.
Introduce a sleep before performing a query that relies on the effects of a
GRANT.

Fix #22798.

Release note: None
  • Loading branch information
benesch committed Feb 20, 2018
1 parent f9f3d43 commit 6fb1575
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/sql/logictest/testdata/logic_test/database
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,11 @@ GRANT DROP ON DATABASE privs TO testuser

user testuser

# Wait for gossip to propagate the new version of the database descriptor.
#
# TODO: block the `GRANT` statement until the new version has been propagated.
# See #22841.
sleep 250ms

statement ok
DROP DATABASE privs CASCADE

0 comments on commit 6fb1575

Please sign in to comment.