Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tkuzynow committed Apr 9, 2024
1 parent 34f549d commit 665cb86
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.boot.test.system.CapturedOutput;
import org.springframework.boot.test.system.OutputCaptureExtension;
import org.springframework.cache.CacheManager;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
Expand Down Expand Up @@ -154,6 +155,9 @@ class UserControllerChatE2EIT {

@MockBean private AgencyServiceApiControllerFactory agencyServiceApiControllerFactory;

@Autowired
private CacheManager cacheManager;

@MockBean
@Qualifier("restTemplate")
private RestTemplate restTemplate;
Expand Down Expand Up @@ -207,6 +211,7 @@ void reset() {
subscriptionsGetResponse = null;
groupDeleteResponse = null;
identityConfig.setDisplayNameAllowedForConsultants(false);
cacheManager.getCache("rocketChatUserCache").clear();
}

@BeforeEach
Expand Down

0 comments on commit 665cb86

Please sign in to comment.