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
af2f0035
Commit
af2f0035
authored
Mar 09, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #22740 from wojtek-t/fix_fake_handler_test
Auto commit by PR queue bot
parents
bf3cc9d1
46ba2bfc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
fake_handler_test.go
pkg/util/testing/fake_handler_test.go
+6
-6
No files found.
pkg/util/testing/fake_handler_test.go
View file @
af2f0035
...
...
@@ -24,7 +24,7 @@ import (
)
func
TestFakeHandlerPath
(
t
*
testing
.
T
)
{
handler
:=
FakeHandler
{}
handler
:=
FakeHandler
{
StatusCode
:
http
.
StatusOK
}
server
:=
httptest
.
NewServer
(
&
handler
)
// TODO: Uncomment when fix #19254
// defer server.Close()
...
...
@@ -47,7 +47,7 @@ func TestFakeHandlerPath(t *testing.T) {
}
func
TestFakeHandlerPathNoBody
(
t
*
testing
.
T
)
{
handler
:=
FakeHandler
{}
handler
:=
FakeHandler
{
StatusCode
:
http
.
StatusOK
}
server
:=
httptest
.
NewServer
(
&
handler
)
// TODO: Uncomment when fix #19254
// defer server.Close()
...
...
@@ -79,7 +79,7 @@ func (f *fakeError) Errorf(format string, args ...interface{}) {
func
(
f
*
fakeError
)
Logf
(
format
string
,
args
...
interface
{})
{}
func
TestFakeHandlerWrongPath
(
t
*
testing
.
T
)
{
handler
:=
FakeHandler
{}
handler
:=
FakeHandler
{
StatusCode
:
http
.
StatusOK
}
server
:=
httptest
.
NewServer
(
&
handler
)
// TODO: Uncomment when fix #19254
// defer server.Close()
...
...
@@ -105,7 +105,7 @@ func TestFakeHandlerWrongPath(t *testing.T) {
}
func
TestFakeHandlerWrongMethod
(
t
*
testing
.
T
)
{
handler
:=
FakeHandler
{}
handler
:=
FakeHandler
{
StatusCode
:
http
.
StatusOK
}
server
:=
httptest
.
NewServer
(
&
handler
)
// TODO: Uncomment when fix #19254
// defer server.Close()
...
...
@@ -131,7 +131,7 @@ func TestFakeHandlerWrongMethod(t *testing.T) {
}
func
TestFakeHandlerWrongBody
(
t
*
testing
.
T
)
{
handler
:=
FakeHandler
{}
handler
:=
FakeHandler
{
StatusCode
:
http
.
StatusOK
}
server
:=
httptest
.
NewServer
(
&
handler
)
// TODO: Uncomment when fix #19254
// defer server.Close()
...
...
@@ -159,7 +159,7 @@ func TestFakeHandlerWrongBody(t *testing.T) {
}
func
TestFakeHandlerNilBody
(
t
*
testing
.
T
)
{
handler
:=
FakeHandler
{}
handler
:=
FakeHandler
{
StatusCode
:
http
.
StatusOK
}
server
:=
httptest
.
NewServer
(
&
handler
)
// TODO: Uncomment when fix #19254
// defer server.Close()
...
...
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