Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bliss
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
Alisher Gaibulaev
bliss
Commits
313ad02d
Commit
313ad02d
authored
4 years ago
by
Wout De Nolf
Browse files
Options
Downloads
Patches
Plain Diff
[test] hanging fixtures
parent
7e630d4b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/conftest.py
+4
-2
4 additions, 2 deletions
tests/conftest.py
with
4 additions
and
2 deletions
tests/conftest.py
+
4
−
2
View file @
313ad02d
...
...
@@ -237,7 +237,8 @@ def beacon(ports):
client
.
_default_connection
=
connection
.
Connection
(
"
localhost
"
,
ports
.
beacon_port
)
config
=
static
.
get_config
()
yield
config
config
.
close
()
with
gevent
.
Timeout
(
10
):
config
.
close
()
client
.
_default_connection
.
close
()
# Ensure no connections are created due to garbage collection:
client
.
_default_connection
=
None
...
...
@@ -389,7 +390,8 @@ def machinfo_tango_server(ports, beacon):
@pytest.fixture
def
session
(
beacon
,
scan_tmpdir
):
session
=
beacon
.
get
(
"
test_session
"
)
session
.
setup
()
with
gevent
.
Timeout
(
10
):
session
.
setup
()
session
.
scan_saving
.
base_path
=
str
(
scan_tmpdir
)
yield
session
session
.
close
()
...
...
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