PR comments
This commit is contained in:
parent
7126534bd2
commit
1ad8e0d458
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue