Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean local Cosmos DB databases #18390

Merged
merged 1 commit into from
Oct 16, 2019
Merged

Clean local Cosmos DB databases #18390

merged 1 commit into from
Oct 16, 2019

Conversation

AndriySvyryd
Copy link
Member

Increase CI timeout

Fixes #18301

Increase CI timeout

Fixes #18301
@AndriySvyryd AndriySvyryd requested a review from a team as a code owner October 15, 2019 23:36
}
finally
{
testDatabase.Initialize(testDatabase.ServiceProvider, () => new BloggingContext(testDatabase));
Copy link
Member

Choose a reason for hiding this comment

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

This will delete the database?

Copy link
Member Author

@AndriySvyryd AndriySvyryd Oct 15, 2019

Choose a reason for hiding this comment

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

Yes, this will mark it as initialized. CosmosTestStore only deletes databases that have been initialized (as trying to delete a non-existing one will cause an exception in some cases)

@smitpatel
Copy link
Member

Probably a good idea to clean up stale database on our test instances.

@AndriySvyryd AndriySvyryd merged commit a7732ed into release/3.1 Oct 16, 2019
@AndriySvyryd AndriySvyryd deleted the Issue18301 branch October 16, 2019 01:31
@AndriySvyryd
Copy link
Member Author

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cosmos.FunctionalTests leave behind test databases on emulator
2 participants