[README] fix info about testing

parent 50bd57d1
Pipeline #7674 failed with stages
in 1 minute and 16 seconds
...@@ -12,7 +12,7 @@ for the basic module `Database.PGMQ.Simple`. ...@@ -12,7 +12,7 @@ for the basic module `Database.PGMQ.Simple`.
First, choose which container image to use: First, choose which container image to use:
```shell ```shell
export PGMQ_CONTAINER=docker.io/cgenie/pgmq:16-1.3.3.1 export PGMQ_CONTAINER=quay.io/tembo/pg16-pgmq:latest
``` ```
However, with the above container, some tests might fail because certain functions However, with the above container, some tests might fail because certain functions
throw errors when a table is not present (e.g. `pgmq.drop_queue`). throw errors when a table is not present (e.g. `pgmq.drop_queue`).
...@@ -26,14 +26,14 @@ export PGMQ_CONTAINER=cgenie/pgmq:16-1.3.3.1 ...@@ -26,14 +26,14 @@ export PGMQ_CONTAINER=cgenie/pgmq:16-1.3.3.1
To run the tests, first start a PGMQ container: To run the tests, first start a PGMQ container:
```shell ```shell
podman run --name pgmq -e POSTGRES_PASSWORD=postgres -p 5432:5432 $PGMQ_CONTAINER podman run --rm --name pgmq -e POSTGRES_PASSWORD=postgres -p 5432:5432 $PGMQ_CONTAINER
``` ```
or with Docker: or with Docker:
```shell ```shell
docker run --name pgmq -e POSTGRES_PASSWORD=postgres -p 5432:5432 $PGMQ_CONTAINER docker run --rm --name pgmq -e POSTGRES_PASSWORD=postgres -p 5432:5432 $PGMQ_CONTAINER
``` ```
Then, execute the tests: Then, execute the tests:
```shell ```shell
cabal v2-run simple-test cabal v2-test
``` ```
The tests should print debug information and complete without errors. The tests should print debug information and complete without errors.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment