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
9467dbdd
Commit
9467dbdd
authored
Jul 05, 2015
by
Matthew Holt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix errors tests
parent
68c416e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
middleware/errors/errors_test.go
middleware/errors/errors_test.go
+2
-1
No files found.
middleware/errors/errors_test.go
View file @
9467dbdd
...
@@ -9,6 +9,7 @@ import (
...
@@ -9,6 +9,7 @@ import (
"net/http/httptest"
"net/http/httptest"
"os"
"os"
"path/filepath"
"path/filepath"
"strings"
"testing"
"testing"
"github.com/mholt/caddy/middleware"
"github.com/mholt/caddy/middleware"
...
@@ -109,7 +110,7 @@ func TestErrors(t *testing.T) {
...
@@ -109,7 +110,7 @@ func TestErrors(t *testing.T) {
t
.
Errorf
(
"Test %d: Expected body %q, but got %q"
,
t
.
Errorf
(
"Test %d: Expected body %q, but got %q"
,
i
,
test
.
expectedBody
,
body
)
i
,
test
.
expectedBody
,
body
)
}
}
if
log
:=
buf
.
String
();
log
!=
test
.
expectedLog
{
if
log
:=
buf
.
String
();
!
strings
.
Contains
(
log
,
test
.
expectedLog
)
{
t
.
Errorf
(
"Test %d: Expected log %q, but got %q"
,
t
.
Errorf
(
"Test %d: Expected log %q, but got %q"
,
i
,
test
.
expectedLog
,
log
)
i
,
test
.
expectedLog
,
log
)
}
}
...
...
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