From c46ca4876c73e2c066bd784f08839f85c7d6f562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6llner?= Date: Tue, 27 Aug 2019 19:07:53 +0200 Subject: [PATCH] T&est stability improvement, adjusted Choco verification description --- .../TestCapImplementations.cs | 12 +++++++++-- chocolatey/VERIFICATION | 20 +++---------------- 2 files changed, 13 insertions(+), 19 deletions(-) diff --git a/Capnp.Net.Runtime.Tests/TestCapImplementations.cs b/Capnp.Net.Runtime.Tests/TestCapImplementations.cs index 5b89f82..b00d2be 100644 --- a/Capnp.Net.Runtime.Tests/TestCapImplementations.cs +++ b/Capnp.Net.Runtime.Tests/TestCapImplementations.cs @@ -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(); public uint Count { get; set; } @@ -518,12 +520,18 @@ namespace Capnp.Net.Runtime.Tests.GenImpls public void Dispose() { - Assert.IsTrue(!CountToDispose.HasValue || Count == CountToDispose, "Must not dispose at this point"); + lock (_lock) + { + Assert.IsTrue(!CountToDispose.HasValue || Count == CountToDispose, "Must not dispose at this point"); + } } public Task GetCallSequence(uint expected, CancellationToken cancellationToken_) { - return Task.FromResult(Count++); + lock (_lock) + { + return Task.FromResult(Count++); + } } } #endregion TestCallOrder diff --git a/chocolatey/VERIFICATION b/chocolatey/VERIFICATION index 8978610..eb65f40 100644 --- a/chocolatey/VERIFICATION +++ b/chocolatey/VERIFICATION @@ -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$