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

config: fix TestGetConfigFromContext on Windows #3306

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

AliceInHunterland
Copy link
Contributor

Failing test caused by hardcoded relative path check which is different for Windows.

Close #3305

pkg/config/config.go Outdated Show resolved Hide resolved
cli/server/server_test.go Outdated Show resolved Hide resolved
Copy link
Member

@AnnaShaleva AnnaShaleva left a comment

Choose a reason for hiding this comment

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

Do not use test prefix to commit/PRs, this prefix is too generic. Use module-specific prefix, because we have tests with the same name in different modules.

@AnnaShaleva AnnaShaleva changed the title test: fix TestGetConfigFromContext on Windows config: fix TestGetConfigFromContext on Windows Feb 8, 2024
Copy link

codecov bot commented Feb 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (51ac153) 84.96% compared to head (939631c) 84.87%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3306      +/-   ##
==========================================
- Coverage   84.96%   84.87%   -0.10%     
==========================================
  Files         328      328              
  Lines       44747    44747              
==========================================
- Hits        38020    37979      -41     
- Misses       5216     5258      +42     
+ Partials     1511     1510       -1     

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

@AliceInHunterland AliceInHunterland force-pushed the test-windows-path branch 3 times, most recently from 5267363 to 6ffdb1a Compare February 9, 2024 15:36
cli/server/server_test.go Show resolved Hide resolved
cli/server/server_test.go Outdated Show resolved Hide resolved
cli/server/server_test.go Outdated Show resolved Hide resolved
Copy link
Member

@AnnaShaleva AnnaShaleva left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM.

cli/server/server_test.go Outdated Show resolved Hide resolved
cli/server/server_test.go Outdated Show resolved Hide resolved
cli/server/server_test.go Outdated Show resolved Hide resolved
cli/server/testdata/protocol.testnet.windows.yml Outdated Show resolved Hide resolved
cli/server/testdata/protocol.testnet.windows.yml Outdated Show resolved Hide resolved
Failing test caused by hardcoded relative path check which is different
for Windows.

Close #3305

Signed-off-by: Ekaterina Pavlova <[email protected]>
Copy link
Member

@AnnaShaleva AnnaShaleva left a comment

Choose a reason for hiding this comment

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

Good, now I'm convinced that this functionality works properly on Windows.

@AnnaShaleva
Copy link
Member

@roman-khimov, may be reviewed & merged.

@roman-khimov roman-khimov merged commit 5fe4778 into master Feb 14, 2024
16 of 19 checks passed
@roman-khimov roman-khimov deleted the test-windows-path branch February 14, 2024 08:24
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.

Failing TestGetConfigFromContext on Windows
3 participants