-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: set up project to use Paratest #136
base: master
Are you sure you want to change the base?
Conversation
@DenTray Could you please review this one? |
4f5f786
to
c64db73
Compare
1a303da
to
d4e0f6e
Compare
…ngle file for saving to production;
@DenTray Could you please take a look at this again? |
@DenTray Done. Could you please take a look? |
Quality Gate failedFailed conditions |
throw new RuntimeException('Unable to lock file'); | ||
} | ||
|
||
usleep(rand($minWaitTime, $maxWaitTime)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
usleep(rand($minWaitTime, $maxWaitTime)); | |
usleep($waitTime); |
|
||
protected function writeFileWithLock(string $filePath, callable $callback): void | ||
{ | ||
$handle = fopen($filePath, 'c+'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$handle = fopen($filePath, 'c+'); | |
$fileResource = fopen($filePath, 'c+'); |
|
||
protected function writeFileWithLock(string $filePath, callable $callback): void | ||
{ | ||
$handle = fopen($filePath, 'c+'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please move c+
value to the user readable constant
if (ParallelTesting::token()) { | ||
$swaggerService->mergeTempDocumentation(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please move it into the saveProductionData
Done: