Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
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
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
Jacklull
k3s
Commits
4d73d99f
Unverified
Commit
4d73d99f
authored
Apr 05, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Apr 05, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #75705 from oomichi/golint-e2e-framework-f
Fix golint failures of e2e/framework/f*.go
parents
e1866740
e28fb1a1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
flake_reporting_util.go
test/e2e/framework/flake_reporting_util.go
+6
-0
framework.go
test/e2e/framework/framework.go
+0
-0
networking_perf.go
test/e2e/network/networking_perf.go
+1
-1
No files found.
test/e2e/framework/flake_reporting_util.go
View file @
4d73d99f
...
...
@@ -22,12 +22,14 @@ import (
"sync"
)
// FlakeReport is a struct for managing the flake report.
type
FlakeReport
struct
{
lock
sync
.
RWMutex
Flakes
[]
string
`json:"flakes"`
FlakeCount
int
`json:"flakeCount"`
}
// NewFlakeReport returns a new flake report.
func
NewFlakeReport
()
*
FlakeReport
{
return
&
FlakeReport
{
Flakes
:
[]
string
{},
...
...
@@ -62,12 +64,14 @@ func (f *FlakeReport) RecordFlakeIfError(err error, optionalDescription ...inter
f
.
FlakeCount
++
}
// GetFlakeCount returns the flake count.
func
(
f
*
FlakeReport
)
GetFlakeCount
()
int
{
f
.
lock
.
RLock
()
defer
f
.
lock
.
RUnlock
()
return
f
.
FlakeCount
}
// PrintHumanReadable returns string of flake report.
func
(
f
*
FlakeReport
)
PrintHumanReadable
()
string
{
f
.
lock
.
RLock
()
defer
f
.
lock
.
RUnlock
()
...
...
@@ -80,12 +84,14 @@ func (f *FlakeReport) PrintHumanReadable() string {
return
buf
.
String
()
}
// PrintJSON returns the summary of frake report with JSON format.
func
(
f
*
FlakeReport
)
PrintJSON
()
string
{
f
.
lock
.
RLock
()
defer
f
.
lock
.
RUnlock
()
return
PrettyPrintJSON
(
f
)
}
// SummaryKind returns the summary of flake report.
func
(
f
*
FlakeReport
)
SummaryKind
()
string
{
return
"FlakeReport"
}
test/e2e/framework/framework.go
View file @
4d73d99f
This diff is collapsed.
Click to expand it.
test/e2e/network/networking_perf.go
View file @
4d73d99f
...
...
@@ -60,7 +60,7 @@ func networkingIPerfTest(isIPv6 bool) {
expectedBandwidth
:=
int
(
float64
(
maxBandwidthBits
)
/
float64
(
totalPods
))
Expect
(
totalPods
)
.
NotTo
(
Equal
(
0
))
appName
:=
"iperf-e2e"
err
,
_
:=
f
.
CreateServiceForSimpleAppWithPods
(
_
,
err
:=
f
.
CreateServiceForSimpleAppWithPods
(
8001
,
8002
,
appName
,
...
...
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