Skip to content

compose/loader: fix TestIsAbs not testing all combinations#2174

Merged
silvin-lubecki merged 1 commit intodocker:masterfrom
thaJeztah:fix_isabs_test
Oct 29, 2019
Merged

compose/loader: fix TestIsAbs not testing all combinations#2174
silvin-lubecki merged 1 commit intodocker:masterfrom
thaJeztah:fix_isabs_test

Conversation

@thaJeztah
Copy link
Member

This test was intending to run all tests, but didn't, which was
caught by golangci-lint;

cli/compose/loader/windows_path_test.go:46:17: SA4010: this result of append is never used, except maybe in other appends (staticcheck)
	tests := append(isabstests, winisabstests...)
	               ^

Looks like a whoopsie on my side in #1990 (I recall I was testing some variations, probably forgot to change back 😂). Pushing as a PR separate from #2173 in case we want to backport this individually.

This test was intending to run all tests, but didn't, which was
caught by golangci-lint;

    cli/compose/loader/windows_path_test.go:46:17: SA4010: this result of append is never used, except maybe in other appends (staticcheck)
    	tests := append(isabstests, winisabstests...)
    	               ^

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Member Author

ping @vdemeester @silvin-lubecki one more small one 😅

Copy link
Contributor

@silvin-lubecki silvin-lubecki left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants