Skip to content

Commit

Permalink
Fix failing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
en-milie committed May 26, 2024
1 parent 3e6885f commit 7ab80c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ void shouldNotRunSimpleExecutorWhenNoHeaders() {
@Test
void shouldRunWhenHeadersArePresent() {
zeroWidthCharsInNamesHeadersFuzzer.fuzz(FuzzingData.builder().headers(Set.of(CatsHeader.builder().name("test").value("value").build())).build());
Mockito.verify(simpleExecutor, Mockito.times(5)).execute(Mockito.any());
Mockito.verify(simpleExecutor, Mockito.times(11)).execute(Mockito.any());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void shouldHaveInsertFuzzingStrategy() {

@Test
void shouldReturnZeroWidthChars() {
Assertions.assertThat(zeroWidthCharsInValuesHeadersFuzzer.getFuzzerContext().getFuzzStrategy()).hasSize(5);
Assertions.assertThat(zeroWidthCharsInValuesHeadersFuzzer.getFuzzerContext().getFuzzStrategy()).hasSize(11);
Assertions.assertThat(zeroWidthCharsInValuesHeadersFuzzer.getFuzzerContext().getFuzzStrategy().get(0).getData()).hasToString("\u200b");
}

Expand Down

0 comments on commit 7ab80c2

Please sign in to comment.