Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
56069ae4
Commit
56069ae4
authored
Jun 01, 2016
by
Aaron Schlesinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests
parent
fe3afa80
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
probes_test.go
cmd/tiller/probes_test.go
+2
-2
No files found.
cmd/tiller/probes_test.go
View file @
56069ae4
...
@@ -10,7 +10,7 @@ func TestProbesServer(t *testing.T) {
...
@@ -10,7 +10,7 @@ func TestProbesServer(t *testing.T) {
mux
:=
newProbesMux
()
mux
:=
newProbesMux
()
srv
:=
httptest
.
NewServer
(
mux
)
srv
:=
httptest
.
NewServer
(
mux
)
defer
srv
.
Close
()
defer
srv
.
Close
()
resp
,
err
:=
http
.
Get
(
"/readiness"
)
resp
,
err
:=
http
.
Get
(
srv
.
URL
+
"/readiness"
)
if
err
!=
nil
{
if
err
!=
nil
{
t
.
Fatalf
(
"GET /readiness returned an error (%s)"
,
err
)
t
.
Fatalf
(
"GET /readiness returned an error (%s)"
,
err
)
}
}
...
@@ -18,7 +18,7 @@ func TestProbesServer(t *testing.T) {
...
@@ -18,7 +18,7 @@ func TestProbesServer(t *testing.T) {
t
.
Fatalf
(
"GET /readiness returned status code %d, expected %d"
,
resp
.
StatusCode
,
http
.
StatusOK
)
t
.
Fatalf
(
"GET /readiness returned status code %d, expected %d"
,
resp
.
StatusCode
,
http
.
StatusOK
)
}
}
resp
,
err
=
http
.
Get
(
"/liveness"
)
resp
,
err
=
http
.
Get
(
srv
.
URL
+
"/liveness"
)
if
err
!=
nil
{
if
err
!=
nil
{
t
.
Fatalf
(
"GET /liveness returned an error (%s)"
,
err
)
t
.
Fatalf
(
"GET /liveness returned an error (%s)"
,
err
)
}
}
...
...
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