feat(server): adds minimum keepalive and headroom, chore: updates packages to fix vulnerabilities
Build & Deploy / build (push) Failing after 1m45s
Build & Deploy / build (push) Failing after 1m45s
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using Ngino.Server;
|
||||
using Xunit;
|
||||
|
||||
namespace ReverseLlama.Client.Tests;
|
||||
|
||||
public class GroupKeepalivePolicyTests
|
||||
{
|
||||
[Fact]
|
||||
public void KeepalivePolicy_IsRoundTripped_ThroughGroupClientInfo()
|
||||
{
|
||||
var policy = new GroupClientKeepalivePolicy(2, 3, 4);
|
||||
var info = new GroupClientInfo(1, "group-1", "client-1", "model-a", "pattern", policy);
|
||||
|
||||
Assert.Equal(2, info.KeepalivePolicy?.InstancesToKeepAlive);
|
||||
Assert.Equal(3, info.KeepalivePolicy?.MaxParallelismPerClient);
|
||||
Assert.Equal(4, info.KeepalivePolicy?.ParallelismHeadroom);
|
||||
}
|
||||
}
|
||||
+4
-3
@@ -9,9 +9,9 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
|
||||
<PackageReference Include="xunit" Version="2.9.2" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.8.1" />
|
||||
<PackageReference Include="xunit" Version="2.9.3" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\src\Ngino.Client\Ngino.Client.csproj" />
|
||||
<ProjectReference Include="..\..\src\Ngino.Server\Ngino.Server.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user