Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
neoppod
Commits
fb51b30d
Commit
fb51b30d
authored
Oct 18, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
18c11a69
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
go/neo/client_test.go
go/neo/client_test.go
+1
-1
go/neo/py/runneo.py
go/neo/py/runneo.py
+2
-1
No files found.
go/neo/client_test.go
View file @
fb51b30d
...
...
@@ -215,7 +215,7 @@ func withNEO(t *testing.T, f func(t *testing.T, nsrv NEOSrv, ndrv *Client), optv
withNEOSrv
(
t
,
func
(
t
*
testing
.
T
,
nsrv
NEOSrv
)
{
t
.
Helper
()
X
:=
xtesting
.
FatalIf
(
t
)
ndrv
,
_
,
err
:=
neoOpen
(
fmt
.
Sprintf
(
"%s@%s"
,
nsrv
.
ClusterName
(),
nsrv
.
MasterAddr
()),
ndrv
,
_
,
err
:=
neoOpen
(
fmt
.
Sprintf
(
"
neo://
%s@%s"
,
nsrv
.
ClusterName
(),
nsrv
.
MasterAddr
()),
&
zodb
.
DriverOptions
{
ReadOnly
:
true
});
X
(
err
)
defer
func
()
{
err
:=
ndrv
.
Close
();
X
(
err
)
...
...
go/neo/py/runneo.py
View file @
fb51b30d
...
...
@@ -40,10 +40,11 @@ def main():
defer
(
cluster
.
stop
)
cluster
.
expectClusterRunning
()
print
(
"I: runneo.py: Started master(s): %s"
%
cluster
.
master_nodes
)
# dump information about ready cluster into readyfile
with
open
(
"%s.tmp"
%
readyf
,
"w"
)
as
f
:
f
.
write
(
cluster
.
master_nodes
)
# XXX ' ' separated if multiple masters
f
.
write
(
cluster
.
master_nodes
)
# XXX ' ' separated if multiple masters
os
.
rename
(
"%s.tmp"
%
readyf
,
readyf
)
# atomic
def
_
():
...
...
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