Skip to content

Commit 2fc828b

Browse files
committed
fix(pgmq): run after-create script before pg_regress test
The test was failing because the pg_regress test expects the pgmq extension to be in a fully functional state, but after pg_upgrade the after-create script wasn't being run. This script sets up necessary pgmq configurations that the tests depend on.
1 parent dc1c6d0 commit 2fc828b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

nix/ext/tests/pgmq.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,5 +203,8 @@ self.inputs.nixpkgs.lib.nixos.runTest {
203203
else:
204204
# Otherwise, the version should match the version from postgresql 15
205205
test.assert_version_matches(version)
206+
207+
test.run_sql_file("${../../../ansible/files/postgresql_extension_custom_scripts/pgmq/after-create.sql}")
208+
test.check_pg_regress(Path("${psql_17}/lib/pgxs/src/test/regress/pg_regress"), "17", pg_regress_test_name)
206209
'';
207210
}

0 commit comments

Comments
 (0)