Skip to content

Commit

Permalink
Fix issue with Linters not running due to name changes
Browse files Browse the repository at this point in the history
  • Loading branch information
en-milie committed Sep 14, 2023
1 parent 903c8bd commit a87a68f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/endava/cats/command/LintCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class LintCommand implements Runnable, CommandLine.IExitCodeGenerator {
public void run() {
catsCommand.apiArguments.setContract(contract);
catsCommand.apiArguments.setServer("empty");
catsCommand.filterArguments.customFilter("Contract");
catsCommand.filterArguments.customFilter("Linter");
catsCommand.filterArguments.getSkipFuzzers().addAll(Optional.ofNullable(skipFuzzers).orElse(Collections.emptyList()));
catsCommand.filterArguments.getCheckArguments().setIncludeContract(true);
catsCommand.run();
Expand Down
3 changes: 2 additions & 1 deletion src/test/java/com/endava/cats/command/LintCommandTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ void init() {
@Test
void shouldRunContractFuzzers() {
lintCommand.run();
Mockito.verify(filterArguments, Mockito.times(1)).customFilter("Contract");
Mockito.verify(filterArguments, Mockito.times(1)).customFilter("Linter");
//TODO check that it actually runs
}

@Test
Expand Down

0 comments on commit a87a68f

Please sign in to comment.