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: panic in CloseStream #37

Merged
merged 1 commit into from
Jun 15, 2024
Merged

fix: panic in CloseStream #37

merged 1 commit into from
Jun 15, 2024

Conversation

evenyag
Copy link
Contributor

@evenyag evenyag commented Jun 14, 2024

What's changed and what's your intention?

This PR checks whether the stream is nil in CloseStream to fix a panic.

It also adds a test for this issue.

Checklist

  • I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

#36

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.04%. Comparing base (1109766) to head (d44819f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #37      +/-   ##
==========================================
+ Coverage   76.88%   77.04%   +0.15%     
==========================================
  Files           7        7              
  Lines         437      440       +3     
==========================================
+ Hits          336      339       +3     
  Misses         78       78              
  Partials       23       23              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@evenyag evenyag merged commit a3ebb89 into main Jun 15, 2024
5 checks passed
@evenyag evenyag deleted the fix/stream-close-panic branch June 15, 2024 10:45
@evenyag evenyag mentioned this pull request Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants