Use testcontainer reuse

This commit is contained in:
Adria Navarro 2025-03-13 10:41:00 +01:00
parent bfaa196a33
commit e8201ea490
1 changed files with 1 additions and 4 deletions

View File

@ -21,6 +21,7 @@ describe("oauth2 utils", () => {
container = await new GenericContainer(keyClockImage)
.withName("keycloak_testcontainer")
.withReuse()
.withExposedPorts(8080)
.withBindMounts([
{ source: volumePath, target: "/opt/keycloak/data/import/" },
@ -35,10 +36,6 @@ describe("oauth2 utils", () => {
)}`
})
afterAll(async () => {
await container.stop()
})
describe("generateToken", () => {
it("successfully generates tokens", async () => {
const response = await config.doInContext(config.appId, async () => {