Skip to content

Commit d5f40e8

Browse files
committed
Tweak UT timings
1 parent 57b4737 commit d5f40e8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test_qos_map.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ def init_test(self, dvs):
119119

120120
# Set switch FC capability to 63
121121
dvs.setReadOnlyAttr('SAI_OBJECT_TYPE_SWITCH', 'SAI_SWITCH_ATTR_MAX_NUMBER_OF_FORWARDING_CLASSES', '63')
122+
time.sleep(1)
122123

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

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

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

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

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

0 commit comments

Comments
 (0)