File tree Expand file tree Collapse file tree
commonMain/kotlin/dev/openfeature/kotlin/sdk
commonTest/kotlin/dev/openfeature/kotlin/sdk Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -171,9 +171,9 @@ class OpenFeatureClient(
171171 val options = optionsIn ? : FlagEvaluationOptions (listOf (), mapOf ())
172172 val hints = options.hookHints
173173 var details = FlagEvaluationDetails (key, defaultValue)
174- val provider = openFeatureAPI.getProvider()
174+ val provider = openFeatureAPI.getProvider(domain )
175175 val mergedHooks: List <Hook <* >> = provider.hooks + options.hooks + hooks + openFeatureAPI.hooks
176- val context = openFeatureAPI.getEvaluationContext()
176+ val context = openFeatureAPI.getEvaluationContext(domain )
177177 val hooksWithContext: List <Pair <Hook <* >, HookContext <T >>> =
178178 mergedHooks
179179 .filter { it.supportsFlagValueType(flagValueType) }
Original file line number Diff line number Diff line change @@ -449,7 +449,8 @@ class ProviderRepositoryTest {
449449 // Trigger Context Update first natively queuing onto IO
450450 OpenFeatureAPI .setEvaluationContext(
451451 testDomain,
452- ImmutableContext (attributes = mapOf (" key" to Value .Boolean (true )))
452+ ImmutableContext (attributes = mapOf (" key" to Value .Boolean (true ))),
453+ dispatcher = StandardTestDispatcher (testScheduler)
453454 )
454455 }
455456
Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ import kotlin.test.assertTrue
1818class LoggingHookTests {
1919
2020 private class TestProviderMetadata (override val name : String = " test-provider" ) : ProviderMetadata
21- private class TestClientMetadata (override val name : String = " test-client" ) : ClientMetadata
21+ private class TestClientMetadata (
22+ override val domain : String? = " test-client" ,
23+ override val name : String? = domain
24+ ) : ClientMetadata
2225
2326 private fun createHookContext (
2427 flagKey : String = "test-flag",
You can’t perform that action at this time.
0 commit comments