Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3338541
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3338541
Commits
54147fd4
Commit
54147fd4
authored
3 years ago
by
catch
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3244533
by andypost, daffie: usleep() usage triggers deprecations on PHP 8.1
parent
33c4319f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/tests/Drupal/KernelTests/Core/File/DirectoryTest.php
+1
-1
1 addition, 1 deletion
core/tests/Drupal/KernelTests/Core/File/DirectoryTest.php
core/tests/Drupal/KernelTests/Core/KeyValueStore/DatabaseStorageTest.php
+1
-1
1 addition, 1 deletion
...al/KernelTests/Core/KeyValueStore/DatabaseStorageTest.php
with
2 additions
and
2 deletions
core/tests/Drupal/KernelTests/Core/File/DirectoryTest.php
+
1
−
1
View file @
54147fd4
...
...
@@ -224,7 +224,7 @@ public function testMultiplePrepareDirectory() {
elseif
(
$pid
==
0
)
{
// Sleep so that all the forks start preparing the directory at the same
// time.
usleep
((
$time_to_start
-
microtime
(
TRUE
))
*
1000000
);
usleep
((
int
)
((
$time_to_start
-
microtime
(
TRUE
))
*
1000000
)
)
;
$file_system
->
prepareDirectory
(
$directory
,
FileSystemInterface
::
CREATE_DIRECTORY
);
exit
();
}
...
...
This diff is collapsed.
Click to expand it.
core/tests/Drupal/KernelTests/Core/KeyValueStore/DatabaseStorageTest.php
+
1
−
1
View file @
54147fd4
...
...
@@ -65,7 +65,7 @@ public function testConcurrent() {
$factory
=
new
KeyValueDatabaseFactory
(
$this
->
container
->
get
(
'serialization.phpserialize'
),
Database
::
getConnection
());
$store
=
$factory
->
get
(
'test'
);
// Sleep so that all the forks start at the same time.
usleep
((
$time_to_start
-
microtime
(
TRUE
))
*
1000000
);
usleep
((
int
)
((
$time_to_start
-
microtime
(
TRUE
))
*
1000000
)
)
;
if
(
$function
===
'getAll'
)
{
$this
->
assertIsArray
(
$store
->
getAll
());
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment