Revert "Ensure GV1 length is exactly the length expected."

This reverts commit 8e962bf992.
This commit is contained in:
Greyson Parrelli
2020-07-22 22:45:19 -04:00
parent dadb2f9d37
commit fc4e690996
6 changed files with 18 additions and 29 deletions

View File

@@ -276,16 +276,6 @@ public final class GroupIdTest {
GroupId.v2orThrow(Hex.fromStringCondensed("000102030405060708090a0b0c0d0e0f"));
}
@Test(expected = BadGroupIdException.class)
public void cannot_create_v1_with_a_bad_length() throws IOException, BadGroupIdException {
GroupId.v1(Hex.fromStringCondensed("000102030405060708090a0b0c0d0e0fff"));
}
@Test(expected = AssertionError.class)
public void cannot_create_v1_with_a_bad_length_assert() throws IOException {
GroupId.v1orThrow(Hex.fromStringCondensed("000102030405060708090a0b0c0d0e0fff"));
}
@Test
public void create_mms() {
GroupId.Mms mms = GroupId.createMms(mockRandom(new byte[]{ 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7, 8 }));