Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
655e61ab
Commit
655e61ab
authored
Jun 28, 2017
by
Tw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
markdown: fix ineffectual assignment CI issue
Signed-off-by:
Tw
<
tw19881113@gmail.com
>
parent
33908629
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
caddyhttp/markdown/markdown_test.go
caddyhttp/markdown/markdown_test.go
+5
-0
No files found.
caddyhttp/markdown/markdown_test.go
View file @
655e61ab
...
...
@@ -81,14 +81,17 @@ func TestMarkdown(t *testing.T) {
req
,
err
:=
http
.
NewRequest
(
"GET"
,
url
,
nil
)
if
err
!=
nil
{
t
.
Fatalf
(
"Could not create HTTP request: %v"
,
err
)
return
""
}
rec
:=
httptest
.
NewRecorder
()
code
,
err
:=
md
.
ServeHTTP
(
rec
,
req
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
return
""
}
if
code
!=
http
.
StatusOK
{
t
.
Fatalf
(
"Wrong status, expected: %d and got %d"
,
http
.
StatusOK
,
code
)
return
""
}
return
rec
.
Body
.
String
()
}
...
...
@@ -223,9 +226,11 @@ func TestTemplateReload(t *testing.T) {
code
,
err
:=
md
.
ServeHTTP
(
rec
,
req
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
return
""
}
if
code
!=
http
.
StatusOK
{
t
.
Fatalf
(
"Wrong status, expected: %d and got %d"
,
http
.
StatusOK
,
code
)
return
""
}
return
rec
.
Body
.
String
()
}
...
...
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