Skip to content

Commit

Permalink
Tweak UT timings
Browse files Browse the repository at this point in the history
  • Loading branch information
TACappleman committed Oct 27, 2021
1 parent 57b4737 commit d5f40e8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_qos_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def init_test(self, dvs):

# Set switch FC capability to 63
dvs.setReadOnlyAttr('SAI_OBJECT_TYPE_SWITCH', 'SAI_SWITCH_ATTR_MAX_NUMBER_OF_FORWARDING_CLASSES', '63')
time.sleep(1)

def get_qos_id(self):
diff = set(self.asic_db.get_keys(self.ASIC_QOS_MAP_STR)) - set(self.asic_qos_map_ids)
Expand All @@ -131,7 +132,7 @@ def test_dscp_to_fc(self, dvs):
# Create a DSCP_TO_FC map
dscp_map = [(str(i), str(i)) for i in range(0, 64)]
self.dscp_ps.set("AZURE", swsscommon.FieldValuePairs(dscp_map))
time.sleep(1)
time.sleep(2)

self.asic_db.wait_for_n_keys(self.ASIC_QOS_MAP_STR, self.asic_qos_map_count + 1)

Expand Down Expand Up @@ -174,7 +175,7 @@ def test_exp_to_fc(self, dvs):
# Create a EXP_TO_FC map
exp_map = [(str(i), str(i)) for i in range(0, 8)]
self.exp_ps.set("AZURE", swsscommon.FieldValuePairs(exp_map))
time.sleep(1)
time.sleep(2)

self.asic_db.wait_for_n_keys(self.ASIC_QOS_MAP_STR, self.asic_qos_map_count + 1)

Expand Down Expand Up @@ -226,7 +227,7 @@ def test_per_port_cbf_binding(self, dvs):
# Create a DSCP_TO_FC map
dscp_map = [(str(i), str(i)) for i in range(0, 64)]
self.dscp_ps.set("AZURE", swsscommon.FieldValuePairs(dscp_map))
time.sleep(1)
time.sleep(2)
self.asic_db.wait_for_n_keys(self.ASIC_QOS_MAP_STR, self.asic_qos_map_count + 1)
dscp_map_id = self.get_qos_id()
self.asic_qos_map_ids = self.asic_db.get_keys(self.ASIC_QOS_MAP_STR)
Expand Down

0 comments on commit d5f40e8

Please sign in to comment.