Skip to content

Commit

Permalink
unittest setup earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Mar 14, 2024
1 parent 3354b7e commit 33761de
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
class TestCompressor(unittest.TestCase):

def setUp(self):
unittest_setup()
set_config(
"Mapping", "router_table_compress_as_far_as_possible", True)
set_config("Machine", "version", 5)
original_tables = MulticastRoutingTables()
original_table = UnCompressedMulticastRoutingTable(x=0, y=0)
original_table.add_multicast_routing_entry(
Expand Down Expand Up @@ -66,10 +70,6 @@ def setUp(self):
0b0010, 0b1011,
processor_ids=[4, 5], link_ids=[], defaultable=False))
original_tables.add_routing_table(original_table)
unittest_setup()
set_config(
"Mapping", "router_table_compress_as_far_as_possible", True)
set_config("Machine", "version", 5)
writer = PacmanDataWriter.mock()
writer.set_uncompressed(original_tables)
writer.set_precompressed(original_tables)
Expand Down

0 comments on commit 33761de

Please sign in to comment.