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 DisableErrSkip() driver option (adds unit test) #210

Merged
merged 1 commit into from
May 22, 2023

Conversation

pmlanger
Copy link
Contributor

Fix #207

It also adds a test. Let me know if it fits in well enough!

driver_test.go Outdated
oteltest.New(
oteltest.MockDatabase(func(m sqlmock.Sqlmock) {
m.ExpectPing().
WillReturnError(skipErr)
Copy link
Owner

Choose a reason for hiding this comment

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

Can we just use driver.ErrSkip directly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done ✅

@pmlanger pmlanger force-pushed the master branch 2 times, most recently from 5515152 to 7c76555 Compare May 22, 2023 09:18
@pmlanger pmlanger changed the title fix DisableErrSkip() driver option fix DisableErrSkip() driver option (adds unit test) May 22, 2023
@nhatthm
Copy link
Owner

nhatthm commented May 22, 2023

@pmlanger Awesome, thanks for the tests 👍

@nhatthm nhatthm enabled auto-merge (squash) May 22, 2023 09:24
@codecov
Copy link

codecov bot commented May 22, 2023

Codecov Report

Merging #210 (97bf61a) into master (1f9ef77) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master      #210   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines         1217      1217           
=========================================
  Hits          1217      1217           
Flag Coverage Δ
unittests-Linux-X64 100.00% <ø> (ø)
unittests-Windows-X64 100.00% <ø> (ø)
unittests-macOS-X64 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@nhatthm nhatthm merged commit e205646 into nhatthm:master May 22, 2023
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.

DisableErrSkip() not working as expected
2 participants