Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@TemporalTest doesn't work when @ActiveProfiles is used #32

Open
SilverSheep opened this issue Aug 23, 2022 · 0 comments
Open

@TemporalTest doesn't work when @ActiveProfiles is used #32

SilverSheep opened this issue Aug 23, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@SilverSheep
Copy link
Contributor

I've tried to run test (in groovy) that needs to start part of spring context (@WebMvcTest) and I don't need or even want temporal stuff running.
For this code:

@TemporalTest
@ActiveProfiles(SECURITY_TEST)
@WebMvcTest(controllers = SampleController.class)
class ControllerSpec extends Specification {

active spring profiles should be: temporal_test and security-test, but only security_test is active and then I get exception:

Caused by: io.grpc.netty.shaded.io.netty.channel.AbstractChannel$AnnotatedConnectException: finishConnect(..) failed: Połączenie odrzucone: /127.0.0.1:7233
Caused by: java.net.ConnectException: finishConnect(..) failed: Połączenie odrzucone

as test tries to connect to temporal's server/client

@simcha simcha added the bug Something isn't working label Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants