Skip to content

Remove PSQLError.Code.clientClosesConnection #400

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

Merged
merged 1 commit into from
Aug 20, 2023

Conversation

fabianfett
Copy link
Collaborator

Follow up to #383. This has breaking change which is fine, since we haven't cut a release after #383, which introduces the error code that we remove now.

@fabianfett fabianfett added the semver-minor Adds new public API. label Aug 19, 2023
@@ -25,8 +25,7 @@ class PostgresChannelHandlerTests: XCTestCase {
handler
], loop: self.eventLoop)
defer {
do { try embedded.finish() }
catch { print("\(String(reflecting: error))") }
XCTAssertNoThrow({ try embedded.finish() })
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this tests finally works correctly again.

@codecov-commenter
Copy link

Codecov Report

Merging #400 (e760f7c) into main (9a02d74) will increase coverage by 0.18%.
The diff coverage is 57.14%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #400      +/-   ##
==========================================
+ Coverage   48.97%   49.15%   +0.18%     
==========================================
  Files         108      108              
  Lines        8845     8839       -6     
==========================================
+ Hits         4332     4345      +13     
+ Misses       4513     4494      -19     
Files Changed Coverage Δ
Sources/PostgresNIO/New/PSQLError.swift 80.00% <ø> (+0.97%) ⬆️
Sources/PostgresNIO/Postgres+PSQLCompat.swift 0.00% <0.00%> (ø)
...nection State Machine/ConnectionStateMachine.swift 62.28% <33.33%> (ø)
...urces/PostgresNIO/New/PostgresChannelHandler.swift 84.62% <100.00%> (+0.02%) ⬆️

... and 2 files with indirect coverage changes

@fabianfett
Copy link
Collaborator Author

Expected API break detected by CI:

1 breaking change detected in PostgresNIO:
  💔 API breakage: var PSQLError.Code.clientClosesConnection has been removed

@fabianfett fabianfett requested a review from gwynne August 19, 2023 10:08
@fabianfett fabianfett merged commit 8f8557b into vapor:main Aug 20, 2023
@fabianfett fabianfett deleted the ff-remove-clientClosesConnection branch August 20, 2023 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants