Skip to content

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

Merged
mangalaman93 merged 1 commit intomainfrom
aman/chore
Mar 20, 2023
Merged

chore(tests): avoid calling os.Exit in TestMain#8765
mangalaman93 merged 1 commit intomainfrom
aman/chore

Conversation

@mangalaman93
Copy link
Copy Markdown
Contributor

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
@ghost ghost added area/core internal mechanisms area/enterprise Related to proprietary features area/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/acl Related to Access Control Lists area/core internal mechanisms 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.

3 participants