Skip to content

Commit

Permalink
chore: fix tests from bad merge (#9229)
Browse files Browse the repository at this point in the history
  • Loading branch information
agavra committed Jun 28, 2022
1 parent 18673d5 commit c810d56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public void shouldBuildRegexThatRespectsSkipPaths() {

// Then:
assertThat(skips.matcher("/heartbeat").matches(), is(true));
assertThat(skips.matcher("/lag").matches(), is(true));
assertThat(skips.matcher("/foo").matches(), is(false));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void shouldRespectServerAuthSkipPathsConfig() {

// Then (make sure the authorization "work" is skipped):
Mockito.verify(routingContext).next();
Mockito.verifyZeroInteractions(workerExecutor);
Mockito.verifyNoInteractions(workerExecutor);
}

@Test
Expand All @@ -79,7 +79,7 @@ public void shouldNotSkipNonAuthenticatedPaths() {

// Then (make sure the authorization "work" is not skipped):
Mockito.verify(routingContext, Mockito.never()).next();
Mockito.verify(workerExecutor).executeBlocking(Mockito.any(), Mockito.any());
Mockito.verify(workerExecutor).executeBlocking(Mockito.any(), Mockito.anyBoolean(), Mockito.any());
}

}

0 comments on commit c810d56

Please sign in to comment.