Skip to content

Commit bd4f6fb

Browse files
committed
graph, store: Move the entity_cache test to test-store
1 parent 5fa50f9 commit bd4f6fb

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

Cargo.lock

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

graph/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ web3 = { git = "https://github.com/graphprotocol/rust-web3", branch = "graph-pat
6666
serde_plain = "1.0.1"
6767

6868
[dev-dependencies]
69-
test-store = { path = "../store/test-store" }
70-
graph-store-postgres = { path = "../store/postgres" }
71-
graph-chain-ethereum = { path = "../chain/ethereum" }
7269
clap = { version = "3.2.23", features = ["derive", "env"] }
7370
maplit = "1.0.2"
7471
hex-literal = "0.3"

graph/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/graph`.
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/tests/graph.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pub mod graph {
2+
pub mod entity_cache;
3+
}

graph/tests/entity_cache.rs renamed to store/test-store/tests/graph/entity_cache.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use async_trait::async_trait;
21
use graph::blockchain::block_stream::FirehoseCursor;
32
use graph::components::store::{
43
DeploymentCursorTracker, DerivedEntityQuery, EntityKey, EntityType, LoadRelatedRequest,

0 commit comments

Comments
 (0)