From 8bbc8d2ce46edf7484dd02fa909557dbb3ae09f3 Mon Sep 17 00:00:00 2001 From: Trevor Bergeron Date: Tue, 18 Nov 2025 01:02:26 +0000 Subject: [PATCH] test: Update test_remote_function_max_instances to reflect cloud run behavior --- tests/system/large/functions/test_remote_function.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/system/large/functions/test_remote_function.py b/tests/system/large/functions/test_remote_function.py index 00b1b5f1f0..f50e8c0a04 100644 --- a/tests/system/large/functions/test_remote_function.py +++ b/tests/system/large/functions/test_remote_function.py @@ -1651,11 +1651,13 @@ def square(x): return x * x +# Note: Zero represents default, which is 100 instances actually, which is why the remote function still works +# in the df.apply() call here @pytest.mark.parametrize( ("max_instances_args", "expected_max_instances"), [ - pytest.param({}, 100, id="no-set"), - pytest.param({"cloud_function_max_instances": None}, 100, id="set-None"), + pytest.param({}, 0, id="no-set"), + pytest.param({"cloud_function_max_instances": None}, 0, id="set-None"), pytest.param({"cloud_function_max_instances": 1000}, 1000, id="set-explicit"), ], )