Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter v2S
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
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
nodes
rust
Duniter v2S
Commits
240fb981
Commit
240fb981
authored
1 year ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
fix(
#125
): fix: e2e tests were keeping the node running of failing tests
parent
bb51146d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
end2end-tests/tests/common/mod.rs
+7
-0
7 additions, 0 deletions
end2end-tests/tests/common/mod.rs
end2end-tests/tests/cucumber_tests.rs
+1
-1
1 addition, 1 deletion
end2end-tests/tests/cucumber_tests.rs
with
8 additions
and
1 deletion
end2end-tests/tests/common/mod.rs
+
7
−
0
View file @
240fb981
...
@@ -87,6 +87,13 @@ impl Process {
...
@@ -87,6 +87,13 @@ impl Process {
}
}
}
}
// Do not let the process keep running after the tests ended
impl
Drop
for
Process
{
fn
drop
(
&
mut
self
)
{
self
.kill
()
}
}
pub
const
DISTANCE_ORACLE_LOCAL_PATH
:
&
str
=
"../target/debug/distance-oracle"
;
pub
const
DISTANCE_ORACLE_LOCAL_PATH
:
&
str
=
"../target/debug/distance-oracle"
;
const
DUNITER_DOCKER_PATH
:
&
str
=
"/usr/local/bin/duniter"
;
const
DUNITER_DOCKER_PATH
:
&
str
=
"/usr/local/bin/duniter"
;
const
DUNITER_LOCAL_PATH
:
&
str
=
"../target/debug/duniter"
;
const
DUNITER_LOCAL_PATH
:
&
str
=
"../target/debug/duniter"
;
...
...
This diff is collapsed.
Click to expand it.
end2end-tests/tests/cucumber_tests.rs
+
1
−
1
View file @
240fb981
...
@@ -613,7 +613,7 @@ async fn main() {
...
@@ -613,7 +613,7 @@ async fn main() {
if
keep_running
{
if
keep_running
{
while
running
.load
(
Ordering
::
SeqCst
)
{}
while
running
.load
(
Ordering
::
SeqCst
)
{}
}
}
// Early kill (not waiting destructor) to save CPU/memory
if
let
Some
(
world
)
=
maybe_world
{
if
let
Some
(
world
)
=
maybe_world
{
world
.kill
();
world
.kill
();
}
}
...
...
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