We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99f6901 commit b14cf10Copy full SHA for b14cf10
store/test-store/src/store.rs
@@ -268,7 +268,11 @@ pub async fn create_subgraph_name(name: &str) -> Result<(), StoreError> {
268
269
pub async fn remove_subgraph(id: &DeploymentHash) {
270
let name = SubgraphName::new_unchecked(id.to_string());
271
- SUBGRAPH_STORE.remove_subgraph(name).await.unwrap();
+ // Ignore SubgraphNotFound errors during cleanup
272
+ match SUBGRAPH_STORE.remove_subgraph(name).await {
273
+ Ok(_) | Err(StoreError::SubgraphNotFound(_)) => {}
274
+ Err(e) => panic!("unexpected error removing subgraph: {}", e),
275
+ }
276
let locs = SUBGRAPH_STORE.locators(id.as_str()).await.unwrap();
277
let mut conn = primary_connection().await;
278
for loc in locs {
0 commit comments