Skip to content

Commit

Permalink
Use crdb-harness
Browse files Browse the repository at this point in the history
  • Loading branch information
smklein committed Sep 18, 2024
1 parent 1850c9d commit 222965a
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 1,415 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ tokio = { version = "1.32", default-features = false, features = [ "rt-multi-thr

[dev-dependencies]
anyhow = "1.0"
crdb-harness = "0.0.1"
diesel = { version = "2.2.2", features = [ "postgres", "r2d2" ] }
libc = "0.2.154"
tempfile = "3.8"
Expand Down
12 changes: 2 additions & 10 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,5 @@
This directory includes some integration tests, specifically with the
CockroachDB database, which uses a PostgreSQL protocol.

Tests expect that the CockroachDB binary exist, and fail without it.

To download a local copy of CockroachDB:

```bash
./tools/ci_download_cockroachdb
```

This downloads a binary to `./out/cockroachdb/bin/cockoach`. If you'd like
to use your own binary here, replace this binary with your own executable.
These tests rely on the `crdb-harness` crate to download CockroachDB
at a particular version.
Loading

0 comments on commit 222965a

Please sign in to comment.