Skip to content

Commit

Permalink
Test that pgmq_meta is created
Browse files Browse the repository at this point in the history
  • Loading branch information
v0idpwn committed Aug 10, 2023
1 parent 3d2e7f2 commit ad5ab37
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ async fn test_lifecycle() {
.await
.expect("failed to create extension");

// pgmq meta was created
let _ = sqlx::query("'pgmq_meta'::regclass")
.execute(&conn)
.await
.expect("pgmq_meta table doesn't exist");

// CREATE with default retention and partition strategy
let test_default_queue = format!("test_default_{test_num}");
let _ = sqlx::query(&format!("SELECT pgmq_create('{test_default_queue}');"))
Expand Down

0 comments on commit ad5ab37

Please sign in to comment.