@@ -3354,7 +3354,7 @@ public async Task ReturnsEmptyDictionaryWhenPersonalApiKeyIncorrect()
33543354 FeatureFlagPayloads = new Dictionary < string , string > ( ) ,
33553355 } ) ;
33563356 container . FakeHttpMessageHandler . AddResponse (
3357- new Uri ( "https://us.i.posthog.com/api/feature_flag/local_evaluation?token=fake-project-api-key&send_cohorts" ) ,
3357+ FakeHttpMessageHandlerExtensions . LocalEvaluationUrl ,
33583358 HttpMethod . Get ,
33593359 new HttpResponseMessage ( HttpStatusCode . Unauthorized )
33603360 {
@@ -3510,7 +3510,7 @@ public async Task ReturnsEmptyDictionaryWhenLocalEvaluationQuotaExceeded()
35103510 // When local evaluation is quota limited, we do not want to fallback to /decide.
35113511 var decideHandler = container . FakeHttpMessageHandler . AddFlagsResponseException ( new InvalidOperationException ( ) ) ;
35123512 container . FakeHttpMessageHandler . AddResponse (
3513- new Uri ( "https://us.i.posthog.com/api/feature_flag/local_evaluation?token=fake-project-api-key&send_cohorts" ) ,
3513+ FakeHttpMessageHandlerExtensions . LocalEvaluationUrl ,
35143514 HttpMethod . Get ,
35153515 new HttpResponseMessage ( HttpStatusCode . PaymentRequired )
35163516 {
@@ -3542,7 +3542,7 @@ public async Task ReturnsFalseWhenSingleFlagLocalEvaluationRequestQuotaExceeded(
35423542 var container = new TestContainer ( "fake-personal-api-key" ) ;
35433543 var decideHandler = container . FakeHttpMessageHandler . AddFlagsResponseException ( new InvalidOperationException ( ) ) ;
35443544 container . FakeHttpMessageHandler . AddResponse (
3545- new Uri ( "https://us.i.posthog.com/api/feature_flag/local_evaluation?token=fake-project-api-key&send_cohorts" ) ,
3545+ FakeHttpMessageHandlerExtensions . LocalEvaluationUrl ,
35463546 HttpMethod . Get ,
35473547 new HttpResponseMessage ( HttpStatusCode . PaymentRequired )
35483548 {
0 commit comments