Skip to content

Commit ac668cb

Browse files
authored
fix test (#478)
1 parent 5b2a6bb commit ac668cb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pgml-extension/src/api.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,8 +604,9 @@ mod tests {
604604

605605
#[pg_test]
606606
fn test_project_lifecycle() {
607-
assert!(Project::create("test", Task::regression).id > 0);
608-
assert!(Project::find(1).unwrap().id > 0);
607+
let project = Project::create("test", Task::regression);
608+
assert!(project.id > 0);
609+
assert!(Project::find(project.id).unwrap().id > 0);
609610
}
610611

611612
#[pg_test]

0 commit comments

Comments
 (0)
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