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

diagnostics: fix test db creation #10497

Merged
merged 2 commits into from
May 27, 2024
Merged

diagnostics: fix test db creation #10497

merged 2 commits into from
May 27, 2024

Conversation

dvovk
Copy link
Member

@dvovk dvovk commented May 27, 2024

Added new constructor for diagnostics client to avoid DB creation while run test

@dvovk dvovk requested a review from awskii May 27, 2024 09:15
@@ -36,6 +36,10 @@ type DiagnosticClient struct {
networkSpeedMutex sync.Mutex
}

func NewTestDiagnosticClient() (*DiagnosticClient, error) {
Copy link
Member

Choose a reason for hiding this comment

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

usually test related stuff should be put into _test.go file, eg this function is only test related - better to move to tests

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@dvovk dvovk requested a review from awskii May 27, 2024 14:15
@awskii awskii merged commit 2c70256 into main May 27, 2024
10 checks passed
@awskii awskii deleted the fixtest branch May 27, 2024 15:17
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.

2 participants