Skip to content

Commit

Permalink
Split CoapBlockStream into a Reader and Writer and make tests more mo…
Browse files Browse the repository at this point in the history
…dular

Missed chnaged intended for 48ae94c
  • Loading branch information
NZSmartie committed Mar 22, 2018
1 parent df2717f commit 7bae697
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/CoAPNet.Tests/CoapBlockMessageTests.cs
Expand Up @@ -299,15 +299,15 @@ public void Write_BlockWiseCoapMessage_BlockSizeTooLarge(int initialBlockSize, i

client.SetNextMessageId(1);

var identifier = await client.SendAsync(baseRequestMessage, ct.Token);
var identifier = await client.SendAsync(baseRequest, ct.Token);

var response = await client.GetResponseAsync(identifier, ct.Token);

result = response.GetCompletedBlockWisePayload(client, baseRequestMessage);
result = response.GetCompletedBlockWisePayload(client, baseRequest);
}

// Assert
Assert.That(result, Is.EqualTo(ByteRange(0, totalBytes)), "Incorrect payload read");
Assert.That(result, Is.EqualTo(BlockWiseTestHelper.ByteRange(0, totalBytes)), "Incorrect payload read");

mockClientEndpoint.Verify();
}
Expand Down

0 comments on commit 7bae697

Please sign in to comment.