We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d965ee8 commit 17a67f3Copy full SHA for 17a67f3
tests/src/fixture/mod.rs
@@ -626,7 +626,12 @@ pub async fn cleanup(
626
hash: &DeploymentHash,
627
) -> Result<(), Error> {
628
let locators = subgraph_store.locators(hash).await?;
629
- subgraph_store.remove_subgraph(name.clone()).await?;
+ // Remove subgraph if it exists, ignore not found errors
630
+ match subgraph_store.remove_subgraph(name.clone()).await {
631
+ Ok(_) | Err(graph::prelude::StoreError::SubgraphNotFound(_)) => {}
632
+ Err(e) => return Err(e.into()),
633
+ }
634
+
635
for locator in locators {
636
subgraph_store.remove_deployment(locator.id.into()).await?;
637
}
0 commit comments