Skip to content

Commit c883e84

Browse files
committed
make test deterministic
Force non-zero duration for the segment not to be dropped (applied 3b30afd).
1 parent d74562e commit c883e84

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/integration/lang/test_attributes.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ class ExampleAttribute
8585
public function __construct(public string $info) {}
8686
public function getInfo(): string
8787
{
88+
time_nanosleep(0, 50000); // force non-zero duration for the segment not to be dropped.
8889
return $this->info;
8990
}
9091
}

0 commit comments

Comments
 (0)