FastLED 3.9.15
Loading...
Searching...
No Matches

◆ record_failure()

test_stress.StressTestResults.record_failure ( self,
str error_type )

Definition at line 67 of file test_stress.py.

67 def record_failure(self, error_type: str):
68 with self.lock:
69 self.total_requests += 1
70 self.failed_requests += 1
71 if error_type == "connection":
72 self.connection_errors += 1
73 elif error_type == "timeout":
74 self.timeout_errors += 1
75 else:
76 self.other_errors += 1
77
78

References connection_errors, failed_requests, lock, other_errors, timeout_errors, and total_requests.