Skip to content

Commit 4686aa9

Browse files
authored
Merge branch 'main' into chore/8.0.0
2 parents 604696a + ceeaf48 commit 4686aa9

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

Flagsmith.Client.Test/FlagsmithTest.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,5 +823,15 @@ public async Task TestGetIdentityFlagsTransientIdentityWithoutTraitCallsExpected
823823
Assert.True(await identityFlags.IsFeatureEnabled("some_feature"));
824824
Assert.Equal("some-identity-trait-value", await identityFlags.GetFeatureValue("some_feature"));
825825
}
826+
827+
[Fact]
828+
public void TestRequestTimeoutInterpretsSecondsCorrectly()
829+
{
830+
var config = new FlagsmithConfiguration
831+
{
832+
RequestTimeout = 100
833+
};
834+
Assert.Equal(100, config.RequestTimeout);
835+
}
826836
}
827837
}

Flagsmith.FlagsmithClient/Flagsmith.FlagsmithClient.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
2+
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<LangVersion>8</LangVersion>

Flagsmith.FlagsmithClient/FlagsmithConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class FlagsmithConfiguration
5353
/// </summary>
5454
public Double? RequestTimeout
5555
{
56-
get => _timeout.Seconds;
56+
get => _timeout.TotalSeconds;
5757
set => _timeout = TimeSpan.FromSeconds(value ?? 100);
5858
}
5959

0 commit comments

Comments
 (0)