From abe0318beccade59a99fcd9b7801f8d2979b09fe Mon Sep 17 00:00:00 2001 From: zhuwenxing Date: Tue, 9 Dec 2025 17:59:14 +0800 Subject: [PATCH] test: use predefined fake_de instead of creating new Faker instances to reduce run time (#46194) related: https://github.com/milvus-io/milvus/issues/46014 /kind improvement Signed-off-by: zhuwenxing --- tests/python_client/testcases/test_full_text_search.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/python_client/testcases/test_full_text_search.py b/tests/python_client/testcases/test_full_text_search.py index dae13cd959..68cc493918 100644 --- a/tests/python_client/testcases/test_full_text_search.py +++ b/tests/python_client/testcases/test_full_text_search.py @@ -527,7 +527,7 @@ class TestInsertWithFullTextSearch(TestcaseBase): if text_lang == "hybrid": hybrid_data = [] for i in range(data_size): - fake = random.choice([fake_en, fake_zh, Faker("de_DE")]) + fake = random.choice([fake_en, fake_zh, fake_de]) tmp = { "id": i, "word": fake.word().lower(), @@ -651,7 +651,7 @@ class TestInsertWithFullTextSearch(TestcaseBase): if text_lang == "zh": fake = fake_zh elif text_lang == "de": - fake = Faker("de_DE") + fake = fake_de elif text_lang == "hybrid": fake = Faker() @@ -688,7 +688,7 @@ class TestInsertWithFullTextSearch(TestcaseBase): if text_lang == "hybrid": hybrid_data = [] for i in range(data_size): - fake = random.choice([fake_en, fake_zh, Faker("de_DE")]) + fake = random.choice([fake_en, fake_zh, fake_de]) tmp = { "id": i, "word": fake.word().lower(), @@ -806,7 +806,7 @@ class TestInsertWithFullTextSearch(TestcaseBase): if text_lang == "zh": fake = fake_zh elif text_lang == "de": - fake = Faker("de_DE") + fake = fake_de elif text_lang == "hybrid": fake = Faker() @@ -841,7 +841,7 @@ class TestInsertWithFullTextSearch(TestcaseBase): if text_lang == "hybrid": hybrid_data = [] for i in range(data_size): - fake = random.choice([fake_en, fake_zh, Faker("de_DE")]) + fake = random.choice([fake_en, fake_zh, fake_de]) tmp = { "id": i, "word": fake.word().lower(),