-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
chore: Add Close Calls to BoltDB Tests to fix Windows Test Errors #5289
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: X-Guardian <[email protected]>
Signed-off-by: X-Guardian <[email protected]>
@@ -0,0 +1,197 @@ | |||
package events |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and other .copy
files, are they intentionally added?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad. Accidentally committed some of my test files. Removed now.
server/metrics/debug.go
Outdated
@@ -38,18 +38,18 @@ func (r *debugReporter) Flush() { | |||
} | |||
|
|||
func (r *debugReporter) ReportCounter(name string, tags map[string]string, value int64) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to comment these log lines out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
Signed-off-by: X-Guardian <[email protected]>
c2fa89f
to
82607eb
Compare
what
Add
close
calls to all the BoltDB instances that are created in the unit tests.why
On Windows, running any of the unit test that use test BoltDB instances results with failures on test clean-up of:
Adding the correct clean-up of these databases resolves this issue.
tests
Tested locally