aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/dispatcher_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-09-28 21:51:10 +0900
committerOphestra <cat@gensokyo.uk>2025-09-28 21:51:10 +0900
commite55822c62f7287698a683e6e7e40aa9a992b5585 (patch)
tree19f5e8e2614c86c9a79f8264b49a2b48e13fabee /container/dispatcher_test.go
parent802e6afa34de7f6124157153b0bde4ac25d7b363 (diff)
container/init: reduce verbose noise
This makes it possible to optionally omit the identifying verbose message, for when the Op implementation can provide a much more useful message in its case, using information not yet available to the String method. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/dispatcher_test.go')
-rw-r--r--container/dispatcher_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/container/dispatcher_test.go b/container/dispatcher_test.go
index ad59503d..7e141304 100644
--- a/container/dispatcher_test.go
+++ b/container/dispatcher_test.go
@@ -111,7 +111,7 @@ func checkOpMeta(t *testing.T, testCases []opMetaTestCase) {
t.Run("prefix", func(t *testing.T) {
t.Helper()
- if got := tc.op.prefix(); got != tc.wantPrefix {
+ if got, _ := tc.op.prefix(); got != tc.wantPrefix {
t.Errorf("prefix: %q, want %q", got, tc.wantPrefix)
}
})
@@ -403,13 +403,12 @@ func (k *kstub) receive(key string, e any, fdp *uintptr) (closeFunc func() error
return
}
-func (k *kstub) bindMount(source, target string, flags uintptr, eq bool) error {
+func (k *kstub) bindMount(source, target string, flags uintptr) error {
k.Helper()
return k.Expects("bindMount").Error(
stub.CheckArg(k.Stub, "source", source, 0),
stub.CheckArg(k.Stub, "target", target, 1),
- stub.CheckArg(k.Stub, "flags", flags, 2),
- stub.CheckArg(k.Stub, "eq", eq, 3))
+ stub.CheckArg(k.Stub, "flags", flags, 2))
}
func (k *kstub) remount(target string, flags uintptr) error {