Skip to content

Commit 6c06bae

Browse files
committed
Merge pull request #48 from dtynn/wanglin/func_getTid
将进程id加入tid以避免时间相近的两次脚本相互干扰
2 parents 029b544 + 3934811 commit 6c06bae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/bootstrap.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99

1010
$tid = getenv("TRAVIS_JOB_NUMBER");
1111
if (!empty($tid)) {
12+
$pid = getmypid();
1213
$tid = strstr($tid, ".");
14+
$tid .= "." . $pid;
1315
}
1416

1517
function initKeys() {

0 commit comments

Comments
 (0)