Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re6stnet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
zhifan huang
re6stnet
Commits
bfc45532
Commit
bfc45532
authored
May 24, 2022
by
zhifan huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: add log of restart machine
parent
bd0ca9ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
re6st/tests/test_network/test_net.py
re6st/tests/test_network/test_net.py
+2
-1
No files found.
re6st/tests/test_network/test_net.py
View file @
bfc45532
...
@@ -123,13 +123,14 @@ class TestNet(unittest.TestCase):
...
@@ -123,13 +123,14 @@ class TestNet(unittest.TestCase):
nodes
,
_
=
deploy_re6st
(
nm
)
nodes
,
_
=
deploy_re6st
(
nm
)
wait_stable
(
nodes
,
100
)
wait_stable
(
nodes
,
100
)
# stop on machine randomly
# stop on machine randomly
index
=
int
(
random
.
random
()
*
7
)
+
1
index
=
int
(
random
.
random
()
*
7
)
+
1
machine
=
nodes
[
index
]
machine
=
nodes
[
index
]
machine
.
stop
()
machine
.
stop
()
time
.
sleep
(
5
)
time
.
sleep
(
5
)
machine
.
run
(
"-i"
+
machine
.
node
.
iface
.
name
)
machine
.
run
(
"-i"
+
machine
.
node
.
iface
.
name
)
logging
.
info
(
"restart %s"
,
machine
.
name
)
self
.
assertTrue
(
wait_stable
(
nodes
,
400
),
"network can't recover"
)
self
.
assertTrue
(
wait_stable
(
nodes
,
400
),
"network can't recover"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment