Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
go-etcd-grpc-load-balance
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ChenHongyu
go-etcd-grpc-load-balance
Commits
b6316cd5
Commit
b6316cd5
authored
Jun 28, 2021
by
ChenHongyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
service test
parent
b6dc6bcc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
service_test.go
lb_demo2/taotie/service/service_test.go
+1
-1
service_test.go
lb_demo3/taotie/service/service_test.go
+1
-1
No files found.
lb_demo2/taotie/service/service_test.go
View file @
b6316cd5
...
...
@@ -20,7 +20,7 @@ func TestMain(m *testing.M) {
func
Benchmark_GetID
(
b
*
testing
.
B
)
{
srv
:=
New
(
config
.
Conf
)
b
.
ResetTimer
()
b
.
N
=
3
0
b
.
N
=
10
0
for
i
:=
0
;
i
<
b
.
N
;
i
++
{
id
,
err
:=
srv
.
GetLogId
(
context
.
Background
(),
int64
(
i
))
if
err
!=
nil
{
...
...
lb_demo3/taotie/service/service_test.go
View file @
b6316cd5
...
...
@@ -20,7 +20,7 @@ func TestMain(m *testing.M) {
func
Benchmark_GetID
(
b
*
testing
.
B
)
{
srv
:=
New
(
config
.
Conf
)
b
.
ResetTimer
()
b
.
N
=
3
0
b
.
N
=
10
0
for
i
:=
0
;
i
<
b
.
N
;
i
++
{
id
,
err
:=
srv
.
GetLogId
(
context
.
Background
(),
int64
(
i
))
if
err
!=
nil
{
...
...
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