fix: unit tests were never run on cmd package

This commit is contained in:
Michael 2023-11-22 19:18:05 +01:00 committed by GitHub
parent d141e4a1ed
commit 35c704ace3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 8 deletions

View file

@ -131,12 +131,6 @@ func TestGetDefaultsEntrypoints(t *testing.T) {
"traefik": {
Address: ":8080",
},
"traefikhub-api": {
Address: ":9900",
},
"traefikhub-tunl": {
Address: ":9901",
},
},
expected: []string{"web"},
},

View file

@ -248,7 +248,7 @@ EntryPoints in this list are used (by default) on HTTP and TCP routers that do n
If at least one EntryPoint has the `AsDefault` option set to `true`,
then the list of default EntryPoints includes only EntryPoints that have the `AsDefault` option set to `true`.
Some built-in EntryPoints are always excluded from the list, namely: `traefik`, `traefikhub-api`, and `traefikhub-tunl`.
Some built-in EntryPoints are always excluded from the list, namely: `traefik`.
!!! warning "Only TCP and HTTP"

View file

@ -18,7 +18,7 @@ set +e
# shellcheck disable=SC2086
# shellcheck disable=SC2048
go test ${TESTFLAGS[*]} ./pkg/...
go test ${TESTFLAGS[*]} ./pkg/... ./cmd/...
CODE=$?
if [ ${CODE} != 0 ]; then