Skip to content

Commit

Permalink
test: fixing test for new default
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Frowen committed Dec 2, 2023
1 parent 1fdaa43 commit 69034ce
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Assets/Tests/SocketLayer/PeerTestSendReceive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -295,12 +295,13 @@ public void ClientReliableSend()
CheckServerReceived(message);
}

private const int DEFAULT_MAX_FRAGMENTS = 50;
[Test]
[TestCase(1, 5)]
[TestCase(0.8f, 4)]
[TestCase(0.5f, 3)]
[TestCase(0.3f, 2)]
[TestCase(0.2f, 1)]
[TestCase(1, DEFAULT_MAX_FRAGMENTS)]
[TestCase(0.8f, (int)(DEFAULT_MAX_FRAGMENTS * 0.8))]
[TestCase(0.5f, (int)(DEFAULT_MAX_FRAGMENTS * 0.5))]
[TestCase(0.3f, (int)(DEFAULT_MAX_FRAGMENTS * 0.3))]
[TestCase(0.2f, (int)(DEFAULT_MAX_FRAGMENTS * 0.2))]
public void FragmentedSend(float maxMultiplier, int expectedFragments)
{
var size = (int)(maxFragmentMessageSize * maxMultiplier);
Expand Down

0 comments on commit 69034ce

Please sign in to comment.