1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-11-23 21:44:44 +02:00

Added protocol in port configuration (#2993)

Closes  #2727
This commit is contained in:
Thomas Anderson
2024-01-13 01:57:24 +03:00
committed by GitHub
parent 9bbc446009
commit 0611fa9b32
12 changed files with 166 additions and 14 deletions

View File

@@ -155,7 +155,7 @@ func TestToConfigFull(t *testing.T) {
Failure: "fail",
AuthConfig: backend.Auth{Username: "user", Password: "123456", Email: "user@example.com"},
NetworkMode: "bridge",
Ports: []uint16{21, 22},
Ports: []backend.Port{{Number: 21}, {Number: 22}},
})
assert.NotNil(t, conf)