diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-11-03 01:49:27 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-11-03 01:49:27 +0900 |
| commit | ae66b3d2fb2f1f65f6ca8932e8044114e609d0b4 (patch) | |
| tree | 3079bfec79b4ac5aada225bfa0da4e631d128741 /container/container_test.go | |
| parent | 149bc3671a499cce0b5719d7396355fabfa7fc2a (diff) | |
message: rename NewMsg to New
Should have done this when relocating this from container. Now is a good time to rename it before v0.3.x.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/container_test.go')
| -rw-r--r-- | container/container_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/container/container_test.go b/container/container_test.go index b7d0e9d1..67d795f9 100644 --- a/container/container_test.go +++ b/container/container_test.go @@ -556,7 +556,7 @@ func testContainerCancel( func TestContainerString(t *testing.T) { t.Parallel() - msg := message.NewMsg(nil) + msg := message.New(nil) c := container.NewCommand(t.Context(), msg, check.MustAbs("/run/current-system/sw/bin/ldd"), "ldd", "/usr/bin/env") c.SeccompFlags |= seccomp.AllowMultiarch c.SeccompRules = seccomp.Preset( @@ -721,7 +721,7 @@ func TestMain(m *testing.M) { } func helperNewContainerLibPaths(ctx context.Context, libPaths *[]*check.Absolute, args ...string) (c *container.Container) { - msg := message.NewMsg(nil) + msg := message.New(nil) c = container.NewCommand(ctx, msg, absHelperInnerPath, "helper", args...) c.Env = append(c.Env, envDoCheck+"=1") c.Bind(check.MustAbs(os.Args[0]), absHelperInnerPath, 0) |
