Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

gqltest: split tests so that every test case is run against the clean database#39483

Merged
sashaostrikov merged 1 commit into
mainfrom
backend-integration/bb-projects-split-tests
Jul 27, 2022
Merged

gqltest: split tests so that every test case is run against the clean database#39483
sashaostrikov merged 1 commit into
mainfrom
backend-integration/bb-projects-split-tests

Conversation

@sashaostrikov

Copy link
Copy Markdown
Contributor

Previously every test case was run in the same test function which led to every consequent test case use the database with some state changed from every previous test case. As all the test cases deal with similar tables in the database, this can lead to unexpected behaviour or false positives, which possibility is now eliminated as every test runs against the clean database.

Test plan

Existing tests should pass

… database

Previously every test case was run in the same test function which led to every consequent test case use the database with some state changed from every previous test case. As all the test cases deal with similar tables in the database, this can lead to unexpected behaviour or false positives, which possibility is now eliminated as every test runs against the clean database.
@sourcegraph-bot

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff c550fa9...38b9874.

Notify File(s)
@unknwon dev/gqltest/bitbucket_projects_perms_sync_test.go
dev/gqltest/sub_repo_permissions_test.go

@indradhanush indradhanush left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. 👌

@sashaostrikov sashaostrikov merged commit 7f5bb77 into main Jul 27, 2022
@sashaostrikov sashaostrikov deleted the backend-integration/bb-projects-split-tests branch July 27, 2022 12:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants