Skip to content

Commit

Permalink
Fixed minor issue in test
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-v committed Jul 4, 2020
1 parent aebfe21 commit 81caedb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import static org.junit.jupiter.api.Assertions.assertEquals;

import io.rsocket.exceptions.RejectedSetupException;
import io.scalecube.services.auth.Authenticator;
import io.scalecube.services.auth.PrincipalMapper;
import io.scalecube.services.discovery.ScalecubeServiceDiscovery;
Expand Down Expand Up @@ -208,8 +209,7 @@ void failedAuthenticationWithInvalidCredentials() {

Consumer<Throwable> verifyError =
th -> {
// TODO Artem V: find a way to map rsocket exception to scalecube exception
// assertEquals(UnauthorizedException.class, th.getClass());
assertEquals(RejectedSetupException.class, th.getClass());
assertEquals("Authentication failed (username or password incorrect)", th.getMessage());
};

Expand Down

0 comments on commit 81caedb

Please sign in to comment.