File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Flagsmith.FlagsmithClient Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -802,5 +802,15 @@ public async Task TestGetIdentityFlagsTransientIdentityWithoutTraitCallsExpected
802802 Assert . True ( await identityFlags . IsFeatureEnabled ( "some_feature" ) ) ;
803803 Assert . Equal ( "some-identity-trait-value" , await identityFlags . GetFeatureValue ( "some_feature" ) ) ;
804804 }
805+
806+ [ Fact ]
807+ public void TestRequestTimeoutInterpretsSecondsCorrectly ( )
808+ {
809+ var config = new FlagsmithConfiguration
810+ {
811+ RequestTimeout = 100
812+ } ;
813+ Assert . Equal ( 100 , config . RequestTimeout ) ;
814+ }
805815 }
806816}
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ public int EnvironmentRefreshIntervalSeconds
8181 /// </summary>
8282 public Double ? RequestTimeout
8383 {
84- get => _timeout . Seconds ;
84+ get => _timeout . TotalSeconds ;
8585 set => _timeout = TimeSpan . FromSeconds ( value ?? 100 ) ;
8686 }
8787
You can’t perform that action at this time.
0 commit comments