mirror of
https://github.com/google/nomulus.git
synced 2025-07-24 11:38:35 +02:00
Fix non-determinism in RegistryTest duplicate auth code test
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=149576311
This commit is contained in:
parent
d4a428fc24
commit
27b9244126
2 changed files with 7 additions and 4 deletions
|
@ -196,11 +196,14 @@ public class RegistryTest extends EntityTestCase {
|
|||
"tld-reserved056",
|
||||
"lol,RESERVED_FOR_ANCHOR_TENANT,conflict2",
|
||||
"tim,FULLY_BLOCKED");
|
||||
ReservedList rl3 = persistReservedList(
|
||||
"tld-reserved057",
|
||||
"lol,RESERVED_FOR_ANCHOR_TENANT,another_conflict");
|
||||
thrown.expect(
|
||||
IllegalArgumentException.class,
|
||||
"auth code conflicts for labels: [lol=[conflict1, conflict2]]");
|
||||
"auth code conflicts for labels: [lol=[conflict1, conflict2, another_conflict]]");
|
||||
@SuppressWarnings("unused")
|
||||
Registry unused = Registry.get("tld").asBuilder().setReservedLists(rl1, rl2).build();
|
||||
Registry unused = Registry.get("tld").asBuilder().setReservedLists(rl1, rl2, rl3).build();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue