mirror of
https://github.com/FabInfra/capnproto-dotnetcore_Runtime.git
synced 2025-03-12 23:01:44 +01:00
T&est stability improvement, adjusted Choco verification description
This commit is contained in:
parent
7c5264ea26
commit
c46ca4876c
@ -510,6 +510,8 @@ namespace Capnp.Net.Runtime.Tests.GenImpls
|
||||
#region TestCallOrder
|
||||
class TestCallOrderImpl : ITestCallOrder
|
||||
{
|
||||
readonly object _lock = new object();
|
||||
|
||||
ILogger Logger { get; } = Logging.CreateLogger<TestCallOrderImpl>();
|
||||
|
||||
public uint Count { get; set; }
|
||||
@ -517,15 +519,21 @@ namespace Capnp.Net.Runtime.Tests.GenImpls
|
||||
public uint? CountToDispose { get; set; }
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
lock (_lock)
|
||||
{
|
||||
Assert.IsTrue(!CountToDispose.HasValue || Count == CountToDispose, "Must not dispose at this point");
|
||||
}
|
||||
}
|
||||
|
||||
public Task<uint> GetCallSequence(uint expected, CancellationToken cancellationToken_)
|
||||
{
|
||||
lock (_lock)
|
||||
{
|
||||
return Task.FromResult(Count++);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion TestCallOrder
|
||||
|
||||
#region TestTailCaller
|
||||
|
@ -2,20 +2,6 @@ VERIFICATION
|
||||
Verification is intended to assist the Chocolatey moderators and community
|
||||
in verifying that this package's contents are trustworthy.
|
||||
|
||||
This package is published by the capnproto-dotnetcore project itself.
|
||||
Starting from a plain Chocolatey test environment, please follow these steps:
|
||||
|
||||
Install .NET Core SDK 2.2.401:
|
||||
> choco install dotnetcore-sdk --version 2.2.401
|
||||
|
||||
Reboot if necessary:
|
||||
> shutdown /r
|
||||
|
||||
Clone the master branch from GitHub:
|
||||
> git clone git://github.com/c80k/capnproto-dotnetcore.git
|
||||
> cd capnproto-dotnetcore\scripts
|
||||
|
||||
Run the packaging script:
|
||||
> .\capnpc-csharp-pack.ps1
|
||||
|
||||
Verify the generated NuGet packages inside capnproto-dotnetcore\chocolatey\install
|
||||
This package is published by the capnproto-dotnetcore project itself. It must be identical to the
|
||||
package which is published on GitHub (replace $version$ by the appropriate version tag):
|
||||
https://github.com/c80k/capnproto-dotnetcore/releases/tag/v$version$
|
||||
|
Loading…
x
Reference in New Issue
Block a user