Skip to content

Commit

Permalink
feat: 超大订阅方案 (closed #2429)
Browse files Browse the repository at this point in the history
  • Loading branch information
wyyalt committed Dec 3, 2024
1 parent d8bc027 commit b1d6f8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/backend/tests/subscription/test_performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class TestPerformance(TestCase):

@classmethod
def mock_get_instance_by_scope(cls, instance_num):
def get_instances_by_scope(scope, *args, **kwargs):
def get_instances_by_scope(scope, data_backend, *args, **kwargs):
if scope["nodes"]:
mocked_instances = {}
for i in range(instance_num):
Expand Down
2 changes: 1 addition & 1 deletion apps/node_man/tests/test_handlers/test_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
from apps.utils.unittest.testcase import CustomBaseTestCase


def get_instances_by_scope(scope, **kwargs):
def get_instances_by_scope(scope, data_backend, **kwargs):
host_id = scope["nodes"][0]["bk_host_id"]
host = Host.objects.filter(bk_host_id=host_id)
instance_key = f"host|instance|host|{host_id}"
Expand Down

0 comments on commit b1d6f8e

Please sign in to comment.