Skip to content

Don't recreate database in integration tests - #1697

Merged
appleboy merged 1 commit into
go-gitea:masterfrom
ethantkoenig:etk/fixtures
May 11, 2017
Merged

Don't recreate database in integration tests#1697
appleboy merged 1 commit into
go-gitea:masterfrom
ethantkoenig:etk/fixtures

Conversation

@ethantkoenig

Copy link
Copy Markdown
Member

There was previously an issue with the test database not being cleared between runs of the integration suite; this problem was fixed in #1693 by deleting and re-creating the test database each time tests are run

This fixes the problem, but is really slow. I realized that the reason the test database wasn't being cleared was due to a missing test fixture file. This PR adds the missing fixture, and removing the now-unnecessary deletion and recreation of test databases.

@andreynering

Copy link
Copy Markdown
Contributor

LGTM

@tboerger tboerger added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label May 9, 2017
@lafriks

lafriks commented May 9, 2017

Copy link
Copy Markdown
Member

LGTM

@tboerger tboerger added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels May 9, 2017
@lunny lunny added this to the 1.2.0 milestone May 10, 2017
@appleboy
appleboy merged commit 251fb93 into go-gitea:master May 11, 2017
@ethantkoenig
ethantkoenig deleted the etk/fixtures branch May 13, 2017 03:46
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants