Skip to content

Commit

Permalink
feat: fix test bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jincheng.zhang committed Apr 1, 2024
1 parent 353b6b5 commit 176e957
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/netpurr/src/panels/manager_testcase_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ impl ManagerTestcasePanel {
}
if editor.lost_focus(){
if !self.edit_name.is_empty()&&!testcases.contains_key(self.edit_name.as_str()){
testcases.insert(self.edit_name.clone(),testcase.clone());
let mut new_testcase = testcase.clone();
new_testcase.name = self.edit_name.clone();
testcases.insert(self.edit_name.clone(),new_testcase);
self.need_edit_name = None;
remove_name_op = Some(name);
}
Expand Down
2 changes: 2 additions & 0 deletions crates/netpurr_core/src/runner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,11 +382,13 @@ impl Runner {
_client,
_shared_map,
).await;
info!("job finish:{:?}",result);
_test_group_run_result.write().unwrap().add_result(result);
});
})
}
});
info!("all test_jobs finish");
}
pub fn get_test_group_jobs(
envs: BTreeMap<String, EnvironmentItemValue>,
Expand Down

0 comments on commit 176e957

Please sign in to comment.