Skip to content

Commit 702bae1

Browse files
authored
Attempt to reduce CI failures by increasing timeout in checking fake readings have changed. (project-chip#34318)
1 parent 7d91f70 commit 702bae1

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

src/python_testing/TC_EEM_2_2.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def steps_TC_EEM_2_2(self) -> list[TestStep]:
4848
TestStep("4", "Wait 3 seconds"),
4949
TestStep("4a", "TH reads from the DUT the CumulativeEnergyImported attribute",
5050
"Verify the read is successful and note the value read."),
51-
TestStep("5", "Wait 3 seconds"),
51+
TestStep("5", "Wait 5 seconds"),
5252
TestStep("5a", "TH reads from the DUT the CumulativeEnergyImported attribute",
5353
"Verify the read is successful and that the value is greater than the value measured in step 4a."),
5454
TestStep("6", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEM.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.EEM.TEST_EVENT_TRIGGER for Stop Fake Readings Test Event."),
@@ -75,7 +75,7 @@ async def test_TC_EEM_2_2(self):
7575
cumulative_energy_imported = await self.read_eem_attribute_expect_success("CumulativeEnergyImported")
7676

7777
self.step("5")
78-
time.sleep(3)
78+
time.sleep(5)
7979

8080
self.step("5a")
8181
cumulative_energy_imported_2 = await self.read_eem_attribute_expect_success("CumulativeEnergyImported")

src/python_testing/TC_EEM_2_3.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def steps_TC_EEM_2_3(self) -> list[TestStep]:
4848
TestStep("4", "Wait 6 seconds"),
4949
TestStep("4a", "TH reads from the DUT the CumulativeEnergyExported attribute",
5050
"Verify the read is successful and note the value read."),
51-
TestStep("5", "Wait 6 seconds"),
51+
TestStep("5", "Wait 11 seconds"),
5252
TestStep("5a", "TH reads from the DUT the CumulativeEnergyExported attribute",
5353
"Verify the read is successful and that the value is greater than the value measured in step 4a."),
5454
TestStep("6", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEM.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.EEM.TEST_EVENT_TRIGGER for Stop Fake Readings Test Event."),
@@ -75,7 +75,7 @@ async def test_TC_EEM_2_3(self):
7575
cumulative_energy_exported = await self.read_eem_attribute_expect_success("CumulativeEnergyExported")
7676

7777
self.step("5")
78-
time.sleep(6)
78+
time.sleep(11)
7979

8080
self.step("5a")
8181
cumulative_energy_exported_2 = await self.read_eem_attribute_expect_success("CumulativeEnergyExported")

src/python_testing/TC_EEM_2_4.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def steps_TC_EEM_2_4(self) -> list[TestStep]:
4848
TestStep("4", "Wait 3 seconds"),
4949
TestStep("4a", "TH reads from the DUT the PeriodicEnergyImported attribute",
5050
"Verify the read is successful and note the value read."),
51-
TestStep("5", "Wait 3 seconds"),
51+
TestStep("5", "Wait 5 seconds"),
5252
TestStep("5a", "TH reads from the DUT the PeriodicEnergyImported attribute",
5353
"Verify the read is successful and that the value read has to be different from value measure in step 4a."),
5454
TestStep("6", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEM.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.EEM.TEST_EVENT_TRIGGER for Stop Fake Readings Test Event."),
@@ -75,7 +75,7 @@ async def test_TC_EEM_2_4(self):
7575
periodic_energy_imported = await self.read_eem_attribute_expect_success("PeriodicEnergyImported")
7676

7777
self.step("5")
78-
time.sleep(3)
78+
time.sleep(5)
7979

8080
self.step("5a")
8181
periodic_energy_imported_2 = await self.read_eem_attribute_expect_success("PeriodicEnergyImported")

src/python_testing/TC_EEM_2_5.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def steps_TC_EEM_2_5(self) -> list[TestStep]:
4848
TestStep("4", "Wait 6 seconds"),
4949
TestStep("4a", "TH reads from the DUT the PeriodicEnergyExported attribute",
5050
"Verify the read is successful and note the value read."),
51-
TestStep("5", "Wait 6 seconds"),
51+
TestStep("5", "Wait 11 seconds"),
5252
TestStep("5a", "TH reads from the DUT the PeriodicEnergyExported attribute",
5353
"Verify the read is successful and that the value read has to be different from value measure in step 4a."),
5454
TestStep("6", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEM.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.EEM.TEST_EVENT_TRIGGER for Stop Fake Readings Test Event."),
@@ -75,7 +75,7 @@ async def test_TC_EEM_2_5(self):
7575
periodic_energy_exported = await self.read_eem_attribute_expect_success("PeriodicEnergyExported")
7676

7777
self.step("5")
78-
time.sleep(6)
78+
time.sleep(11)
7979

8080
self.step("5a")
8181
periodic_energy_exported_2 = await self.read_eem_attribute_expect_success("PeriodicEnergyExported")

src/python_testing/TC_EPM_2_2.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def steps_TC_EPM_2_2(self) -> list[TestStep]:
5656
"Verify the read is successful and that the value is between 3'848 and 4'848 mA. Note the value read."),
5757
TestStep("4c", "TH reads from the DUT the Voltage attribute",
5858
"Verify the read is successful and that the value is between 229'000 and 231'000 mV. Note the value read."),
59-
TestStep("5", "Wait 3 seconds"),
59+
TestStep("5", "Wait 5 seconds"),
6060
TestStep("5a", "TH reads from the DUT the ActivePower attribute",
6161
"Verify the read is successful, that the value is between '980'000 and 1'020'000 mW, and the value is different from the value read in step 4a."),
6262
TestStep("5b", "TH reads from the DUT the ActiveCurrent attribute",
@@ -100,8 +100,8 @@ async def test_TC_EPM_2_2(self):
100100
voltage = await self.check_epm_attribute_in_range("Voltage", 229000, 231000)
101101

102102
self.step("5")
103-
# After 3 seconds...
104-
time.sleep(3)
103+
# After 5 seconds...
104+
time.sleep(5)
105105

106106
self.step("5a")
107107
# Active power is Mandatory

0 commit comments

Comments
 (0)