Skip to content

Commit

Permalink
Release 2.0 alpha.1 (take2) (#122)
Browse files Browse the repository at this point in the history
* Do not pack sandbox or test projects

* Clean-up and test flapper fix
  • Loading branch information
mtmk authored Aug 31, 2023
1 parent 7b20ddc commit 77d3b90
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 149 deletions.
14 changes: 0 additions & 14 deletions sandbox/ConsoleApp1/ConsoleApp1.csproj

This file was deleted.

38 changes: 0 additions & 38 deletions sandbox/ConsoleApp1/Program.cs

This file was deleted.

15 changes: 0 additions & 15 deletions sandbox/ConsoleApp2/ConsoleApp2.csproj

This file was deleted.

76 changes: 0 additions & 76 deletions sandbox/ConsoleApp2/Program.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
Expand Down
12 changes: 6 additions & 6 deletions tests/NATS.Client.JetStream.Tests/ConsumerConsumeTest.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.Text.RegularExpressions;
using NATS.Client.Core.Tests;

namespace NATS.Client.JetStream.Tests;
Expand Down Expand Up @@ -64,13 +65,12 @@ await Retry.Until(
.Where(f => f.Message.StartsWith("PUB $JS.API.CONSUMER.MSG.NEXT.s1.c1"))
.ToList();

// Initial pull
Assert.Matches(@"^PUB.*""batch"":10\b", msgNextRequests.First().Message);

foreach (var frame in msgNextRequests.Skip(1))
foreach (var frame in msgNextRequests)
{
// Consequent pulls should top-up to max value
Assert.Matches(@"^PUB.*""batch"":5\b", frame.Message);
var match = Regex.Match(frame.Message, @"^PUB.*""batch"":(\d+)");
Assert.True(match.Success);
var batch = int.Parse(match.Groups[1].Value);
Assert.True(batch <= 10);
}
}

Expand Down
1 change: 1 addition & 0 deletions tests/NATS.Client.Perf/NATS.Client.Perf.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 77d3b90

Please sign in to comment.