Skip to content

Commit a3eb43e

Browse files
akoclaude
andcommitted
fix: update integration tests to use Reader() method instead of reader field
PR #238 removed the `reader` field from the Executor struct and replaced it with a Reader() method. Two integration test files still referenced the old field, breaking the CI integration test build. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 88f3648 commit a3eb43e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mdl/executor/roundtrip_doctype_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func TestMxCheck_DoctypeScripts(t *testing.T) {
137137
}
138138

139139
// Filter out version-gated sections that don't match this project's Mendix version
140-
pv := env.executor.reader.ProjectVersion()
140+
pv := env.executor.Reader().ProjectVersion()
141141
filtered, skippedLines := filterByVersion(string(content), pv)
142142
if skippedLines > 0 {
143143
t.Logf("Mendix %s: skipped %d version-gated lines", pv.ProductVersion, skippedLines)

mdl/executor/roundtrip_helpers_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ func (e *testEnv) assertContains(createMDL string, expectedProps []string, opts
587587
// requireMinVersion skips the test if the project's Mendix version is below the given minimum.
588588
func (e *testEnv) requireMinVersion(t *testing.T, major, minor int) {
589589
t.Helper()
590-
pv := e.executor.reader.ProjectVersion()
590+
pv := e.executor.Reader().ProjectVersion()
591591
if !pv.IsAtLeast(major, minor) {
592592
t.Skipf("Requires Mendix %d.%d+ (project is %s)", major, minor, pv.ProductVersion)
593593
}

0 commit comments

Comments
 (0)