Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jeffrey H. Johnson
gfcp
Commits
7451c06a
Verified
Commit
7451c06a
authored
Jan 12, 2021
by
Jeffrey H. Johnson
Browse files
sess_test: Cleanup some tests.
parent
0f77ba66
Changes
1
Hide whitespace changes
Inline
Side-by-side
gfcp_sess_test.go
View file @
7451c06a
...
...
@@ -727,7 +727,7 @@ func TestParallel(
concurrent
,
)
for
i
:=
0
;
i
<
concurrent
;
i
++
{
go
parallel
_c
lient
(
go
parallel
C
lient
(
&
wg
,
)
}
...
...
@@ -746,7 +746,7 @@ func TestParallel(
)
}
func
parallel
_c
lient
(
func
parallel
C
lient
(
wg
*
sync
.
WaitGroup
,
)
(
err
error
,
...
...
@@ -758,7 +758,7 @@ func parallel_client(
)
}
err
=
echo
_t
ester
(
err
=
echo
T
ester
(
cli
,
64
,
64
,
...
...
@@ -852,7 +852,7 @@ func speedclient(
)
}
if
err
:=
echo
_t
ester
(
if
err
:=
echo
T
ester
(
cli
,
nbytes
,
b
.
N
,
...
...
@@ -949,7 +949,7 @@ func sinkclient(
err
,
)
}
sink
_t
ester
(
sink
T
ester
(
cli
,
nbytes
,
b
.
N
,
...
...
@@ -961,7 +961,7 @@ func sinkclient(
)
}
func
echo
_t
ester
(
func
echo
T
ester
(
cli
net
.
Conn
,
msglen
,
msgcount
int
,
...
...
@@ -983,18 +983,17 @@ func echo_tester(
)
if
err
!=
nil
{
return
err
}
else
{
nrecv
+=
n
if
nrecv
==
msglen
{
break
}
}
nrecv
+=
n
if
nrecv
==
msglen
{
break
}
}
}
return
nil
}
func
sink
_t
ester
(
func
sink
T
ester
(
cli
*
gfcp
.
UDPSession
,
msglen
,
msgcount
int
,
...
...
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