Skip to content

Commit 5646986

Browse files
committed
test: fix execHelp signature in upstream mock test
Pre-existing build failure on origin/main — execHelp(ctx) call mismatched the (*ExecContext, *ast.HelpStmt) signature. One-liner fix to unblock `go test ./...` locally; worth upstreaming but unrelated to the umbrella PR set.
1 parent 1a22f90 commit 5646986

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

mdl/executor/cmd_misc_mock_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package executor
55
import (
66
"testing"
77

8+
"github.com/mendixlabs/mxcli/mdl/ast"
89
"github.com/mendixlabs/mxcli/mdl/backend/mock"
910
"github.com/mendixlabs/mxcli/mdl/types"
1011
)
@@ -64,7 +65,7 @@ func TestShowVersion_NoSchemaHash(t *testing.T) {
6465

6566
func TestHelp_Mock(t *testing.T) {
6667
ctx, buf := newMockCtx(t)
67-
assertNoError(t, execHelp(ctx))
68+
assertNoError(t, execHelp(ctx, &ast.HelpStmt{}))
6869

6970
out := buf.String()
7071
assertContainsStr(t, out, "MDL Commands")

0 commit comments

Comments
 (0)