server: update integration tests
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I3a8adec01604806e1dab5e3deea88c3e6a6a6964
This commit is contained in:
parent
e2abc331d1
commit
0c11680a56
1 changed files with 7 additions and 2 deletions
|
|
@ -81,8 +81,12 @@ async fn test_e2e_project_eval_build_flow() {
|
||||||
|
|
||||||
// 4. Create an evaluation
|
// 4. Create an evaluation
|
||||||
let eval = fc_common::repo::evaluations::create(&pool, CreateEvaluation {
|
let eval = fc_common::repo::evaluations::create(&pool, CreateEvaluation {
|
||||||
jobset_id: jobset.id,
|
jobset_id: jobset.id,
|
||||||
commit_hash: "e2e0000000000000000000000000000000000000".to_string(),
|
commit_hash: "e2e0000000000000000000000000000000000000".to_string(),
|
||||||
|
pr_number: None,
|
||||||
|
pr_head_branch: None,
|
||||||
|
pr_base_branch: None,
|
||||||
|
pr_action: None,
|
||||||
})
|
})
|
||||||
.await
|
.await
|
||||||
.expect("create evaluation");
|
.expect("create evaluation");
|
||||||
|
|
@ -274,6 +278,7 @@ async fn test_e2e_project_eval_build_flow() {
|
||||||
pool: pool.clone(),
|
pool: pool.clone(),
|
||||||
config,
|
config,
|
||||||
sessions: std::sync::Arc::new(dashmap::DashMap::new()),
|
sessions: std::sync::Arc::new(dashmap::DashMap::new()),
|
||||||
|
http_client: reqwest::Client::new(),
|
||||||
};
|
};
|
||||||
let app = fc_server::routes::router(state, &server_config);
|
let app = fc_server::routes::router(state, &server_config);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue