From aefa17d23b7f7a7db46c9d8d729eb42ffdb09c3f Mon Sep 17 00:00:00 2001 From: Vishwas Siravara Date: Mon, 20 Feb 2023 18:38:29 -0800 Subject: [PATCH] Fix unit test after rebase Signed-off-by: Vishwas Siravara --- cmd/finch/nerdctl_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/finch/nerdctl_test.go b/cmd/finch/nerdctl_test.go index e22773b89..702efd16c 100644 --- a/cmd/finch/nerdctl_test.go +++ b/cmd/finch/nerdctl_test.go @@ -425,7 +425,7 @@ func TestNerdctlCommand_run(t *testing.T) { logger.EXPECT().Debugf("Status of virtual machine: %s", "Running") logger.EXPECT().Debugf(`Resolving special IP "host-gateway" to %q for host %q`, "192.168.5.2", "name") c := mocks.NewCommand(ctrl) - lcc.EXPECT().Create("shell", limaInstanceName, nerdctlCmdName, "run", + lcc.EXPECT().Create("shell", limaInstanceName, "sudo", nerdctlCmdName, "run", "--rm", "--add-host=name:192.168.5.2", "alpine:latest").Return(c) c.EXPECT().Run() }, @@ -448,7 +448,7 @@ func TestNerdctlCommand_run(t *testing.T) { getVMStatusC.EXPECT().Output().Return([]byte("Running"), nil) logger.EXPECT().Debugf("Status of virtual machine: %s", "Running") c := mocks.NewCommand(ctrl) - lcc.EXPECT().Create("shell", limaInstanceName, nerdctlCmdName, "run", + lcc.EXPECT().Create("shell", limaInstanceName, "sudo", nerdctlCmdName, "run", "--rm", "--add-host=name:0.0.0.0", "alpine:latest").Return(c) c.EXPECT().Run() },