Troubleshooting EmbargoServer TC

This commit is contained in:
Christian Köllner 2019-08-20 19:45:40 +02:00
parent b23cc54491
commit 44fd4edfe9
2 changed files with 31 additions and 31 deletions

View File

@ -773,8 +773,7 @@ namespace Capnp.Net.Runtime.Tests
}
var cap = new TestCallOrderImpl();
using (Skeleton.Claim(cap))
{
cap.CountToDispose = 6;
var earlyCall = main.GetCallSequence(0, default);
var echo = main.Echo(cap, default);
@ -809,8 +808,6 @@ namespace Capnp.Net.Runtime.Tests
Assert.AreEqual(4u, call4.Result);
Assert.AreEqual(5u, call5.Result);
}
}
}
}
}

View File

@ -514,8 +514,11 @@ namespace Capnp.Net.Runtime.Tests.GenImpls
public uint Count { get; set; }
public uint? CountToDispose { get; set; }
public void Dispose()
{
Assert.IsTrue(!CountToDispose.HasValue || Count == CountToDispose, "Must not dispose at this point");
}
public Task<uint> GetCallSequence(uint expected, CancellationToken cancellationToken_)