Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 467 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 467 Bytes

Message DB Client Integration Tests

Clients tests are moved into a separate module to avoid consumers having to import test dependencies.

Running tests

The client tests require an instance of Message DB running to test against.

# Start Message DB
docker build -t message-db .
docker run -d --rm \
    -p 5432:5432 \
    -e POSTGRES_HOST_AUTH_METHOD=trust \
    message-db \
    -c message_store.sql_condition=on

# Run tests
go test -condition-on