Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
56a3f6c0
Commit
56a3f6c0
authored
Jan 07, 2019
by
Janoš Guljaš
Committed by
Anton Evangelatov
Jan 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swarm/storage/mock/test: fix T.Fatal inside a goroutine (#18399)
parent
356c49fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
test.go
swarm/storage/mock/test/test.go
+8
-3
No files found.
swarm/storage/mock/test/test.go
View file @
56a3f6c0
...
...
@@ -196,17 +196,22 @@ func ImportExport(t *testing.T, outStore, inStore mock.GlobalStorer, n int) {
r
,
w
:=
io
.
Pipe
()
defer
r
.
Close
()
exportErrChan
:=
make
(
chan
error
)
go
func
()
{
defer
w
.
Close
()
if
_
,
err
:=
exporter
.
Export
(
w
);
err
!=
nil
{
t
.
Fatalf
(
"export: %v"
,
err
)
}
_
,
err
:=
exporter
.
Export
(
w
)
exportErrChan
<-
err
}()
if
_
,
err
:=
importer
.
Import
(
r
);
err
!=
nil
{
t
.
Fatalf
(
"import: %v"
,
err
)
}
if
err
:=
<-
exportErrChan
;
err
!=
nil
{
t
.
Fatalf
(
"export: %v"
,
err
)
}
for
i
,
addr
:=
range
addrs
{
chunkAddr
:=
storage
.
Address
(
append
(
addr
[
:
],
[]
byte
(
strconv
.
FormatInt
(
int64
(
i
)
+
1
,
16
))
...
))
data
:=
[]
byte
(
strconv
.
FormatInt
(
int64
(
i
)
+
1
,
16
))
...
...
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