Skip to content

Commit 1af3b22

Browse files
chore: upgrade system-metrics to v1.5.0
- Updated gophpeek/system-metrics from v1.4.0 to v1.5.0 - Fixed test compatibility with PHP 8.4 int division behavior - memoryMb can now be int or float, updated assertion to toBeNumeric()
1 parent 1d2a1bf commit 1af3b22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Feature/ChildProcessTrackingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
$cpuTimeMs = ($cpuUsagePercent / 100.0) * $durationSeconds * 1000.0;
167167

168168
// Verify all values are usable
169-
expect($memoryMb)->toBeFloat()->toBeGreaterThan(0.0);
169+
expect($memoryMb)->toBeNumeric()->toBeGreaterThan(0.0); // Can be int or float in PHP 8.4
170170
expect($cpuUsagePercent)->toBeFloat()->toBeGreaterThanOrEqual(0.0);
171171
expect($durationSeconds)->toBeFloat()->toBeGreaterThanOrEqual(0.0); // Can be 0 on fast systems
172172
expect($cpuTimeMs)->toBeFloat()->toBeGreaterThanOrEqual(0.0);

0 commit comments

Comments
 (0)