1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-11 17:50:58 +00:00

Merge pull request 'fix(tests): binds are not sorted' (#97) from earl-warren/act:wip-test into main

Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/97
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
This commit is contained in:
earl-warren 2025-01-23 16:45:52 +00:00
commit 0e99df94b7

View file

@ -258,13 +258,13 @@ func TestMergeJobOptions(t *testing.T) {
}{ }{
{ {
name: "ok", name: "ok",
options: "--volume /foo:/bar --volume /frob:/nitz --volume somevolume --tmpfs /tmp:exec,noatime --hostname alternatehost", options: "--volume /frob:/nitz --volume somevolume --tmpfs /tmp:exec,noatime --hostname alternatehost",
config: &container.Config{ config: &container.Config{
Volumes: map[string]struct{}{"somevolume": {}}, Volumes: map[string]struct{}{"somevolume": {}},
Hostname: "alternatehost", Hostname: "alternatehost",
}, },
hostConfig: &container.HostConfig{ hostConfig: &container.HostConfig{
Binds: []string{"/foo:/bar", "/frob:/nitz"}, Binds: []string{"/frob:/nitz"},
Tmpfs: map[string]string{"/tmp": "exec,noatime"}, Tmpfs: map[string]string{"/tmp": "exec,noatime"},
}, },
}, },