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

Allow stopping app after Stop() has been called #1019

Merged
merged 2 commits into from
Jan 9, 2023

Conversation

sywhang
Copy link
Contributor

@sywhang sywhang commented Jan 9, 2023

Starting from 1.19, calling Stop() when an app has been stopped returns an error.

This actually is an unexpected change for many users who have been using fxtest for testing their apps. Specifically, if they have a server that errors out when tests are written, these will often trigger Stop() to be called many times..

Starting from 1.19, calling Stop() when an app has been stopped returns an
error.

This actually is an unexpected change for many users who have been using
fxtest for testing their apps. Specifically, if they have a server that
errors out when tests are written, these will often trigger Stop() to be
called many times..
@codecov
Copy link

codecov bot commented Jan 9, 2023

Codecov Report

Merging #1019 (83ddf74) into master (f0d73c6) will decrease coverage by 0.10%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1019      +/-   ##
==========================================
- Coverage   98.14%   98.04%   -0.11%     
==========================================
  Files          39       39              
  Lines        1992     1992              
==========================================
- Hits         1955     1953       -2     
- Misses         29       31       +2     
  Partials        8        8              
Impacted Files Coverage Δ
internal/lifecycle/lifecycle.go 92.39% <100.00%> (-1.17%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sywhang sywhang merged commit 91e752c into uber-go:master Jan 9, 2023
@sywhang sywhang deleted the allow-stop-after-stop branch January 9, 2023 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants