Skip to content

Commit

Permalink
chore: Enable server-side-polling in contract tests (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
keelerm84 authored Jan 30, 2024
1 parent d4eb5af commit 3aec7b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contract-tests/client_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ def __init__(self, tag, config):
if streaming.get("baseUri") is not None:
opts["stream_uri"] = streaming["baseUri"]
_set_optional_time_prop(streaming, "initialRetryDelayMs", opts, "initial_reconnect_delay")
else:
opts['stream'] = False
polling = config["polling"]
if polling.get("baseUri") is not None:
opts["base_uri"] = polling["baseUri"]
_set_optional_time_prop(polling, "pollIntervalMs", opts, "poll_interval")

if config.get("events") is not None:
events = config["events"]
Expand Down
1 change: 1 addition & 0 deletions contract-tests/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def status():
body = {
'capabilities': [
'server-side',
'server-side-polling',
'all-flags-with-reasons',
'all-flags-client-side-only',
'all-flags-details-only-for-tracked-flags',
Expand Down

0 comments on commit 3aec7b7

Please sign in to comment.