Skip to content

Commit 04ba48f

Browse files
committed
store: Move postgres tests to test-store
1 parent c74154d commit 04ba48f

File tree

12 files changed

+17
-5
lines changed

12 files changed

+17
-5
lines changed

Cargo.lock

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

store/postgres/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,4 @@ pretty_assertions = "1.3.0"
4040
futures = "0.3"
4141
clap = "3.2.23"
4242
graphql-parser = "0.4.0"
43-
test-store = { path = "../test-store" }
4443
hex-literal = "0.3"
45-
graph-chain-ethereum = { path = "../../chain/ethereum" }

store/postgres/tests/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Put integration tests for this crate into `store/test-store/tests/postgres`.
2+
This avoids cyclic dev-dependencies which make rust-analyzer nearly
3+
unusable. Once [this
4+
issue](https://github.com/rust-lang/rust-analyzer/issues/14167) has been
5+
fixed, we can move tests back here

store/test-store/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ serde = "1.0"
2020
prost-types = { workspace = true }
2121

2222
[dev-dependencies]
23+
hex = "0.4.3"
2324
pretty_assertions = "1.3.0"

store/test-store/tests/postgres.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
pub mod postgres {
2+
pub mod chain_head;
3+
pub mod graft;
4+
pub mod relational;
5+
pub mod relational_bytes;
6+
pub mod store;
7+
pub mod subgraph;
8+
pub mod writable;
9+
}

store/postgres/tests/chain_head.rs renamed to store/test-store/tests/postgres/chain_head.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Test ChainStore implementation of Store, in particular, how
22
//! the chain head pointer gets updated in various situations
33
4-
use futures::executor;
4+
use graph::prelude::futures03::executor;
55
use std::future::Future;
66
use std::sync::Arc;
77

0 commit comments

Comments
 (0)