Skip to content

Commit 57b4737

Browse files
committed
Fix UT timing
1 parent 0dc1091 commit 57b4737

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_qos_map.py

+4
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ def test_dscp_to_fc(self, dvs):
131131
# Create a DSCP_TO_FC map
132132
dscp_map = [(str(i), str(i)) for i in range(0, 64)]
133133
self.dscp_ps.set("AZURE", swsscommon.FieldValuePairs(dscp_map))
134+
time.sleep(1)
134135

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

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

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

@@ -224,13 +226,15 @@ def test_per_port_cbf_binding(self, dvs):
224226
# Create a DSCP_TO_FC map
225227
dscp_map = [(str(i), str(i)) for i in range(0, 64)]
226228
self.dscp_ps.set("AZURE", swsscommon.FieldValuePairs(dscp_map))
229+
time.sleep(1)
227230
self.asic_db.wait_for_n_keys(self.ASIC_QOS_MAP_STR, self.asic_qos_map_count + 1)
228231
dscp_map_id = self.get_qos_id()
229232
self.asic_qos_map_ids = self.asic_db.get_keys(self.ASIC_QOS_MAP_STR)
230233

231234
# Create a EXP_TO_FC map
232235
exp_map = [(str(i), str(i)) for i in range(0, 8)]
233236
self.exp_ps.set("AZURE", swsscommon.FieldValuePairs(exp_map))
237+
time.sleep(1)
234238
self.asic_db.wait_for_n_keys(self.ASIC_QOS_MAP_STR, self.asic_qos_map_count + 2)
235239
exp_map_id = self.get_qos_id()
236240

0 commit comments

Comments
 (0)