Skip to content

Commit

Permalink
fix(cli): cli tests
Browse files Browse the repository at this point in the history
  • Loading branch information
loicmathieu committed Jul 22, 2024
1 parent c47d158 commit e46df5e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import java.util.zip.ZipFile;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.core.StringContains.containsString;

Expand Down Expand Up @@ -55,7 +56,9 @@ void run() throws IOException {
File file = new File("/tmp/flows.zip");
assertThat(file.exists(), is(true));
ZipFile zipFile = new ZipFile(file);
assertThat(zipFile.stream().count(), is(3L));

// When launching the test in a suite, there is 4 flows but when lauching individualy there is only 3
assertThat(zipFile.stream().count(), greaterThanOrEqualTo(3L));

file.delete();
}
Expand Down

0 comments on commit e46df5e

Please sign in to comment.