Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xinchen10 committed May 29, 2018
1 parent d858187 commit 19ecd13
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/Common/ProtocolTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1316,8 +1316,12 @@ public void ReceiverLinkStoppingTest()
this.testListener.RegisterTarget(TestPoint.Flow, (stream, channel, fields) =>
{
uint current = total;
total = (uint)fields[5] + (uint)fields[6];
for (uint i = current; i < total; i++)
uint limit = (uint)fields[5] + (uint)fields[6];
if (limit > total)
{
total = limit;
}
for (uint i = current; i < limit; i++)
{
TestListener.FRM(stream, 0x14UL, 0, channel, fields[4], i, BitConverter.GetBytes(i), 0u, false, false); // transfer
}
Expand Down

0 comments on commit 19ecd13

Please sign in to comment.