mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact?
No
### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc)
Testing
### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes)
No
### Are you introducing any new config? If yes, do you have tests with and without them being set?
No
### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))
### Description
Add helio_distributed_test_helpers to helio_compat tests
Without this, tests that rely on `helio_distributed_test_helpers` (e.g., tests for background index builds) crap out with an error like so:
```
CALL helio_distributed_test_helpers.create_indexes_background('db', '{ "createIndexes": "LargeKeySize", "indexes": [ { "key" : { "a": 1 }, "name": "rumConstraint1"}] }');
- retval | ok
----------------------------------------------------------------------
- { "raw" : { "defaultShard" : { "numIndexesBefore" : { "$numberInt" : "1" }, "numIndexesAfter" : { "$numberInt" : "2" }, "createdCollectionAutomatically" : false, "ok" : { "$numberInt" : "1" } } }, "ok" : { "$numberInt" : "1" } } | t
-(1 row)
-
+ERROR: procedure helio_distributed_test_helpers.create_indexes_background(unknown, unknown) does not exist
+LINE 1: CALL helio_distributed_test_helpers.create_indexes_backgroun...
+ ^
+HINT: No procedure matches the given name and argument types. You might need to add explicit type casts.
```
----
#### AI description (iteration 1)
#### PR Classification
Code cleanup
#### PR Summary
This pull request updates the test setup for `helio_compat` by adding a new test helper.
- `pgmongo/src/test/helio_compat/helio_setup_schedule`: Added `helio_distributed_test_helpers` to the test setup.