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