Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pyjapc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scripting-tools
pyjapc
Commits
c1d9b554
Commit
c1d9b554
authored
3 years ago
by
Philip Elson
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix/random_timeout' into 'master'
Be more tolerant of slow GC in the tests See merge request
!73
parents
f80186ab
36cdca5e
No related branches found
No related tags found
1 merge request
!73
Be more tolerant of slow GC in the tests
Pipeline
#2891423
passed
3 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pyjapc/tests/test_pyjapc.py
+4
-1
4 additions, 1 deletion
pyjapc/tests/test_pyjapc.py
with
4 additions
and
1 deletion
pyjapc/tests/test_pyjapc.py
+
4
−
1
View file @
c1d9b554
...
...
@@ -830,7 +830,10 @@ def test_subscription_callback_object_deletion(japc, japc_mock):
gc
.
collect
()
# Java GC is not instant, so let's give it a chance to finish.
time
.
sleep
(
0.1
)
for
_
in
range
(
10
):
if
destroyed
:
break
time
.
sleep
(
0.1
)
assert
destroyed
...
...
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