Skip to content

Commit 7e44445

Browse files
Update providers/openfeature-provider-flagd/tests/test_grpc_watcher.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Simon Schrottner <[email protected]>
1 parent b66ff85 commit 7e44445

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

providers/openfeature-provider-flagd/tests/test_grpc_watcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ def test_selector_passed_via_both_metadata_and_body(self):
153153
call_args = self.mock_stub.SyncFlags.call_args
154154

155155
# Verify the request contains selector in body (backward compatibility)
156-
request = call_args[0][0] # First positional argument is the request
156+
request = call_args.args[0] # First positional argument is the request
157157
self.assertEqual(request.selector, 'test-selector')
158158

159159
# Verify metadata also contains flagd-selector header (new approach)
160-
kwargs = call_args[1]
160+
kwargs = call_args.kwargs
161161
self.assertIn('metadata', kwargs)
162162
metadata = kwargs['metadata']
163163
self.assertEqual(metadata, [('flagd-selector', 'test-selector')])

0 commit comments

Comments
 (0)