Skip to content

Commit 0c4f28f

Browse files
committed
attempt to fix tests
Signed-off-by: christian.lutnik <[email protected]>
1 parent 2a991b9 commit 0c4f28f

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

providers/openfeature-provider-flagd/tests/e2e/rpc/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from tests.e2e.testfilter import TestFilter
55

66
resolver = ResolverType.RPC
7-
feature_list = ["~targetURI", "~unixsocket", "~sync"]
7+
feature_list = ["~targetURI", "~unixsocket", "~sync", "~metadata"]
88

99

1010
def pytest_collection_modifyitems(config, items):

providers/openfeature-provider-flagd/tests/e2e/step/flag_step.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from time import sleep
2+
13
import requests
24
from asserts import assert_equal
35
from pytest_bdd import given, parsers, then, when
@@ -46,6 +48,7 @@ def evaluate_with_details(
4648
@when("the flag was modified")
4749
def assert_flag_change_event(container):
4850
requests.post(f"{container.get_launchpad_url()}/change", timeout=1)
51+
sleep(.2)
4952

5053

5154
@then("the flag should be part of the event payload")

providers/openfeature-provider-flagd/tests/e2e/step/provider_steps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def get_default_options_for_provider(
7777
path = option_values["selector"]
7878
path = path.replace("rawflags/", "")
7979
options["offline_flag_source_path"] = os.path.join(
80-
"..", "openfeature", "test-harness", "flags", path
80+
Path(__file__).parents[3], "openfeature", "test-harness", "flags", path
8181
)
8282
else:
8383
options["offline_flag_source_path"] = os.path.join(

0 commit comments

Comments
 (0)