From 5e79ef6d828c7febdee3d98da9ae621dc44a9ba6 Mon Sep 17 00:00:00 2001 From: Montana Low Date: Mon, 7 Nov 2022 09:02:23 -0800 Subject: [PATCH] use the proper id --- pgml-extension/src/api.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pgml-extension/src/api.rs b/pgml-extension/src/api.rs index 74e19633f..94d23b244 100644 --- a/pgml-extension/src/api.rs +++ b/pgml-extension/src/api.rs @@ -604,8 +604,9 @@ mod tests { #[pg_test] fn test_project_lifecycle() { - assert!(Project::create("test", Task::regression).id > 0); - assert!(Project::find(1).unwrap().id > 0); + let project = Project::create("test", Task::regression); + assert!(project.id > 0); + assert!(Project::find(project.id).unwrap().id > 0); } #[pg_test] pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy