Skip to content

Commit 1d4defa

Browse files
test(dashboard): register active fixture projects
1 parent f63f0b5 commit 1d4defa

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

tests/dashboard_api_test/runtime.rs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,21 @@ impl DashboardTestRuntimeV1 {
6767
project_root: &Path,
6868
_open_options: TraceDecayOpenOptions,
6969
) -> Result<TraceDecay> {
70-
self.graph
70+
let graph = self
71+
.graph
7172
.initialize(project_root, self.project_id.clone())
73+
.await?;
74+
self.databases
75+
.profile_database()
76+
.upsert_code_project(self.project_id.as_str(), project_root, None, None, None)
7277
.await
78+
.ok_or_else(|| TraceDecayError::Config {
79+
message: format!(
80+
"dashboard test project '{}' was rejected by the registry",
81+
project_root.display()
82+
),
83+
})?;
84+
Ok(graph)
7385
}
7486

7587
pub(crate) async fn open_project_graph_for_test(

0 commit comments

Comments
 (0)