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