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

fix(test): Clean cruft from test run #8348

Merged
merged 2 commits into from
Mar 21, 2023

Conversation

joshua-goldstein
Copy link
Contributor

Problem

This PR introduces some badger instances that are not closed.

Solution

We clean up the files.

@skrdgraph skrdgraph marked this pull request as ready for review October 4, 2022 15:31
skrdgraph
skrdgraph previously approved these changes Oct 4, 2022
@coveralls
Copy link

coveralls commented Oct 4, 2022

Coverage Status

Coverage: 66.9% (-0.3%) from 67.243% when pulling b3920bf on joshua/cleaning-test-cherry-8319 into 043a1cf on main.

@@ -204,4 +204,7 @@ func TestParseSchemaFromAlterOperation(t *testing.T) {
})
}

ps.Close()
os.RemoveAll(dir)
Copy link
Contributor

Choose a reason for hiding this comment

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

I am a little confused here, does this cleanup happen even when the tests fail? I am trying to understand if this is part of the @after state or @test state.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@skrdgraph Thanks for noticing this, I think now it is much cleaner. Note that defer statements are executed in FILO order.

@skrdgraph
Copy link
Contributor

Pushing this out to next release (marking draft temporarily)

@joshua-goldstein joshua-goldstein force-pushed the joshua/cleaning-test-cherry-8319 branch from dd18b4a to 6e8d4cb Compare February 21, 2023 00:17
@joshua-goldstein joshua-goldstein marked this pull request as ready for review February 21, 2023 00:17
@MichelDiz MichelDiz added the dgraph Issue or PR created by an internal Dgraph contributor. label Mar 7, 2023
@mangalaman93 mangalaman93 merged commit 830c6ea into main Mar 21, 2023
@mangalaman93 mangalaman93 deleted the joshua/cleaning-test-cherry-8319 branch March 21, 2023 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dgraph Issue or PR created by an internal Dgraph contributor.
Development

Successfully merging this pull request may close these issues.

6 participants