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

chore(tests): avoid calling os.Exit in TestMain #8765

Merged
merged 1 commit into from
Mar 20, 2023
Merged

Conversation

mangalaman93
Copy link
Member

we should not call os.Exit in TestMain any more. Calling os.Exit would not cleanup after the test run ever when all the tests run fine. For more details, see

we should not call os.Exit in TestMain any more. Calling
os.Exit would not cleanup after the test run ever when
all the tests run fine. For more details, see
  * https://pkg.go.dev/testing#hdr-Main
  * https://go-review.googlesource.com/c/go/+/219639
@dgraph-bot dgraph-bot added area/core internal mechanisms area/enterprise Related to proprietary features area/enterprise/acl Related to Access Control Lists area/graphql Issues related to GraphQL support on Dgraph. area/live-loader Issues related to live loading. area/querylang Issues related to the query language specification and implementation. area/testing Testing related issues go Pull requests that update Go code labels Mar 18, 2023
@mangalaman93 mangalaman93 merged commit 009f639 into main Mar 20, 2023
@mangalaman93 mangalaman93 deleted the aman/chore branch March 20, 2023 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core internal mechanisms area/enterprise/acl Related to Access Control Lists area/enterprise Related to proprietary features area/graphql Issues related to GraphQL support on Dgraph. area/live-loader Issues related to live loading. area/querylang Issues related to the query language specification and implementation. area/testing Testing related issues go Pull requests that update Go code
Development

Successfully merging this pull request may close these issues.

4 participants