#!/bin/bash
source "$(dirname "${BASH_SOURCE[0]}")/common.sh"

../ci-pg-restore \
  --cache-name="mycache" \
  --deps-files-cmd="find . -name '*.sql'" \
  --cache-db-max-age=60 \
  --restore-db-max-age=60 \
  --dbname=ci_mydb \
  psql -tA -f fixtures/dump-with-error.sql

test "$error" = 0
