Skip to content

Commit 9fae490

Browse files
fix(tests): attempt to fix test
1 parent 123685f commit 9fae490

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/test/java/io/kestra/plugin/sqlmesh/cli/SQLMeshCLITest.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,7 @@ void run() throws Exception {
4242

4343
SQLMeshCLI runner = terraformBuilder.build();
4444

45-
RunContext runContext = runContextFactory.of(
46-
Map.of(
47-
"environmentKey", environmentKey,
48-
"environmentValue", environmentValue
49-
)
50-
);
45+
RunContext runContext = TestsUtils.mockRunContext(runContextFactory, runner, Map.of("environmentKey", environmentKey, "environmentValue", environmentValue));
5146

5247
ScriptOutput scriptOutput = runner.run(runContext);
5348
assertThat(scriptOutput.getExitCode(), is(0));

0 commit comments

Comments
 (0)