Java mail sender integration test with Green Mail failing in spring boot after installing spring boot actuator
I have been working on a project for quite long time. I had written quite a lot of integration tests(39). All of the tests used to pass. Recently I decided to add spring actuator starter project. But after adding spring actuator some of my integration tests are failing. These test are used to test the java mail sender. I am using green mail to actually test java mail sender. Since then I had realized I won’t be needing actuator so I ran a “git restore .” to go back to my previous commit. But the tests still don’t work. I have no idea what is going wrong here. When I run the tests I get most of the times assertion failed, green mail should receive 1 mail but it never does. But sometimes I also get this exception