Skip to content

Commit

Permalink
Error with 11
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon authored Aug 15, 2019
1 parent 7d516be commit cbc5e86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions neo.UnitTests/Network/P2P/Payloads/UT_Witness.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ public void MaxSize_OK()
[TestMethod]
public void MaxSize_Error()
{
var witness = PrepareDummyWitness(15);
var witness = PrepareDummyWitness(11);

// Check max size

Assert.IsTrue(witness.Size > 1400);
Assert.IsTrue(witness.Size > 1024);
Assert.ThrowsException<FormatException>(() => witness.ToArray().AsSerializable<Witness>());

This comment has been minimized.

Copy link
@igormcoelho

igormcoelho Aug 15, 2019

Contributor

Nice test!

}

Expand Down Expand Up @@ -193,4 +193,4 @@ public void ToJson()
Assert.AreEqual(json["verification"].AsString(), "202020");
}
}
}
}

0 comments on commit cbc5e86

Please sign in to comment.