Pin the one-byte tail of a provider command document
All checks were successful
CultMesh portability and performance / ubuntu-latest reactive semantics and leases (pull_request) Successful in 21m44s
All checks were successful
CultMesh portability and performance / ubuntu-latest reactive semantics and leases (pull_request) Successful in 21m44s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
96551866d6
commit
02344c6546
1 changed files with 3 additions and 0 deletions
|
|
@ -190,6 +190,9 @@ public sealed class CultMeshProviderSessionWireTests
|
|||
var thrown = Assert.Throws<MessagePackSerializationException>(() =>
|
||||
CultMeshProviderSessionWire.DecodeCommandDocument(Record(payload.Concat(new byte[] { 0xc0, 0xc0 }).ToArray())))!;
|
||||
Assert.That(thrown.Message, Does.Contain("2 bytes after its first MessagePack value"));
|
||||
var one = Assert.Throws<MessagePackSerializationException>(() =>
|
||||
CultMeshProviderSessionWire.DecodeCommandDocument(Record(payload.Concat(new byte[] { 0xc0 }).ToArray())))!;
|
||||
Assert.That(one.Message, Does.Contain("1 bytes after its first MessagePack value"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
|
|||
Loading…
Reference in a new issue