aboutsummaryrefslogtreecommitdiffhomepage
path: root/helper/container_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-09-13 19:50:17 +0900
committerOphestra <cat@gensokyo.uk>2025-09-13 20:01:33 +0900
commit3f25c3f0af5631dcf46584ec122f7466fb8cfe37 (patch)
tree6dbe98c080f90200c2192e416e5be319af5ae5dc /helper/container_test.go
parente271fa77aa72d3e9b937d77a9151157b9caeadf1 (diff)
container: initialise cmd early
This allows use of more cmd methods. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'helper/container_test.go')
-rw-r--r--helper/container_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/helper/container_test.go b/helper/container_test.go
index 2d1c256c..9aaeec8e 100644
--- a/helper/container_test.go
+++ b/helper/container_test.go
@@ -11,10 +11,10 @@ import (
)
func TestContainer(t *testing.T) {
- t.Run("start empty container", func(t *testing.T) {
+ t.Run("start invalid container", func(t *testing.T) {
h := helper.New(t.Context(), container.MustAbs(container.Nonexistent), "hakurei", argsWt, false, argF, nil, nil)
- wantErr := "container: starting an empty container"
+ wantErr := "container: starting an invalid container"
if err := h.Start(); err == nil || err.Error() != wantErr {
t.Errorf("Start: error = %v, wantErr %q",
err, wantErr)