Closed timyates closed 8 months ago
Kudos, no new issues were introduced!
0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code
Weirdly the same test in Micronaut-test doesn't fail when I change the environments...
So it must be some interaction happening in this aws module...
Found a workaround which is to annotate the field with @MockBean
instead of @Inject
as in this test in micronaut-test
When annotated with
@MicronautLambdaTest
, this test fails.It is because the
EagerSingleton
inside the Hander and the Test are 2 different mocks.When this test is run with
@MicronautTest
then it passes...It must be something to do with Environments, as using
Also fails with the same issue...