Skip to content

Commit 7b44357

Browse files
authored
Merge pull request #5898: Misc pants-plugins/uses_services improvements
2 parents 975c798 + 677e7b6 commit 7b44357

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Added
1616
to pants' use of PEX lockfiles. This is not a user-facing addition.
1717
#5778 #5789 #5817 #5795 #5830 #5833 #5834 #5841 #5840 #5838 #5842 #5837 #5849 #5850
1818
#5846 #5853 #5848 #5847 #5858 #5857 #5860 #5868 #5871 #5864 #5874 #5884 #5893 #5891
19-
#5890
19+
#5890 #5898
2020
Contributed by @cognifloyd
2121

2222
* Added a joint index to solve the problem of slow mongo queries for scheduled executions. #5805

pants-plugins/uses_services/mongo_rules_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def test_mongo_not_running(rule_runner: RuleRunner, mock_platform: Platform) ->
7575
request = UsesMongoRequest(
7676
db_host="127.100.20.7",
7777
db_port=10, # unassigned port, unlikely to be used
78+
db_connection_timeout=10, # ms # very short as it should fail anyway
7879
)
7980

8081
with pytest.raises(ExecutionError) as exception_info:

pants-plugins/uses_services/register.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
PythonTestsGeneratorTarget,
1717
)
1818

19-
from uses_services import mongo_rules, platform_rules
19+
from uses_services import mongo_rules, platform_rules, rabbitmq_rules, redis_rules
2020
from uses_services.target_types import UsesServicesField
2121

2222

@@ -26,4 +26,6 @@ def rules():
2626
PythonTestTarget.register_plugin_field(UsesServicesField),
2727
*platform_rules.rules(),
2828
*mongo_rules.rules(),
29+
*rabbitmq_rules.rules(),
30+
*redis_rules.rules(),
2931
]

0 commit comments

Comments
 (0)