-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #237 - commit even after simple query
- Loading branch information
Showing
6 changed files
with
30 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
test/tests/custom_db_tests/db_update_in_background_commit.robot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
*** Settings *** | ||
Documentation Check if the SQL statement returns new results, if DB is being updated in the background - | ||
... this requires a commit after each query. | ||
... See https://github.com/MarketSquare/Robotframework-Database-Library/issues/237 | ||
Resource ../../resources/common.resource | ||
|
||
Suite Setup Connect To DB | ||
Suite Teardown Disconnect From Database | ||
Test Setup Create Person Table And Insert Data | ||
Test Teardown Drop Tables Person And Foobar | ||
|
||
|
||
*** Test Cases *** | ||
Use Auto retry | ||
[Documentation] Update the DB manually in the background and check if the query returns the new results | ||
Check Query Result SELECT LAST_NAME FROM person ORDER BY id == Musk retry_timeout=30s |