PR comments

This commit is contained in:
Adria Navarro 2024-11-07 12:12:23 +01:00
parent 7126534bd2
commit 1ad8e0d458
1 changed files with 1 additions and 10 deletions

View File

@ -4,17 +4,8 @@ import { GenericContainer, Wait } from "testcontainers"
export async function useRealQueues() {
const redis = await new GenericContainer("redis")
.withExposedPorts(6379)
.withEnvironment({})
.withLabels({ "com.budibase": "true" })
.withReuse()
.withWaitStrategy(
Wait.forSuccessfulCommand(
`until redis-cli ping | grep -q PONG; do
echo "Waiting for Redis to be ready..."
sleep 1
done
echo "Redis is ready!"`
).withStartupTimeout(10000)
Wait.forSuccessfulCommand(`redis-cli`).withStartupTimeout(10000)
)
.start()