diff --git a/src/test/java/se/kth/spork/cli/CliTest.java b/src/test/java/se/kth/spork/cli/CliTest.java index a1e3daea..a6453e8d 100644 --- a/src/test/java/se/kth/spork/cli/CliTest.java +++ b/src/test/java/se/kth/spork/cli/CliTest.java @@ -23,11 +23,11 @@ class CliTest { @ParameterizedTest @ArgumentsSource(Util.ConflictSourceProvider.class) void merge_shouldExitNonZero_onConflict(Util.TestSources sources) { - String[] args = {"merge", sources.left.toString(), sources.base.toString(), sources.right.toString()}; + String[] args = {sources.left.toString(), sources.base.toString(), sources.right.toString()}; int exitCode = new CommandLine(new Cli.Merge()).execute(args); - assertNotEquals(0, exitCode); + assertTrue(exitCode > 0); } @ParameterizedTest