This is a prerequisite for path compression, so that insert/delete
can determine when compression occurred.
Updates #7781
Signed-off-by: David Anderson <danderson@tailscale.com>
pull/8701/head
David Anderson2 years agocommitted byDave Anderson
t.Errorf("tables ended up different with different insertion order (-got+want):\n%s\n\nOrder 1: %v\nOrder 2: %v",diff,formatSlowEntriesShort(routes),formatSlowEntriesShort(routes2))
t.Errorf("tables ended up different with different insertion order (-got+want):\n%s\n\nOrder 1: %v\nOrder 2: %v",diff,formatSlowEntriesShort(routes),formatSlowEntriesShort(routes2))
t.Errorf("tables with identical vals ended up different with different insertion order (-got+want):\n%s\n\nOrder 1: %v\nOrder 2: %v",diff,formatSlowEntriesShort(routes),formatSlowEntriesShort(routes2))
t.Errorf("tables with identical vals ended up different with different insertion order (-got+want):\n%s\n\nOrder 1: %v\nOrder 2: %v",diff,formatSlowEntriesShort(routes),formatSlowEntriesShort(routes2))
t.Errorf("tables ended up different with different deletion order (-got+want):\n%s\n\nOrder 1: %v\nOrder 2: %v",diff,formatSlowEntriesShort(toDelete),formatSlowEntriesShort(toDelete2))
t.Errorf("tables ended up different with different deletion order (-got+want):\n%s\n\nOrder 1: %v\nOrder 2: %v",diff,formatSlowEntriesShort(toDelete),formatSlowEntriesShort(toDelete2))
t.Errorf("tables with identical vals ended up different with different deletion order (-got+want):\n%s\n\nOrder 1: %v\nOrder 2: %v",diff,formatSlowEntriesShort(toDelete),formatSlowEntriesShort(toDelete2))
t.Errorf("tables with identical vals ended up different with different deletion order (-got+want):\n%s\n\nOrder 1: %v\nOrder 2: %v",diff,formatSlowEntriesShort(toDelete),formatSlowEntriesShort(toDelete2))