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
c4a177bd
Commit
c4a177bd
authored
Sep 19, 2016
by
Matthew Holt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lint warnings and update CI tests to Go 1.7.1
parent
8ecd5435
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
.travis.yml
.travis.yml
+1
-1
caddyfile/parse_test.go
caddyfile/parse_test.go
+10
-10
No files found.
.travis.yml
View file @
c4a177bd
...
...
@@ -2,7 +2,7 @@ language: go
go
:
-
1.6.3
-
1.7
-
1.7
.1
-
tip
matrix
:
...
...
caddyfile/parse_test.go
View file @
c4a177bd
...
...
@@ -275,33 +275,33 @@ func TestRecursiveImport(t *testing.T) {
return
true
}
recursive
_f
ile1
,
err
:=
filepath
.
Abs
(
"testdata/recursive_import_test1"
)
recursive
F
ile1
,
err
:=
filepath
.
Abs
(
"testdata/recursive_import_test1"
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
recursive
_f
ile2
,
err
:=
filepath
.
Abs
(
"testdata/recursive_import_test2"
)
recursive
F
ile2
,
err
:=
filepath
.
Abs
(
"testdata/recursive_import_test2"
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
// test relative recursive import
err
=
ioutil
.
WriteFile
(
recursive
_f
ile1
,
[]
byte
(
err
=
ioutil
.
WriteFile
(
recursive
F
ile1
,
[]
byte
(
`localhost
dir1
import recursive_import_test2`
),
0644
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
defer
os
.
Remove
(
recursive
_f
ile1
)
defer
os
.
Remove
(
recursive
F
ile1
)
err
=
ioutil
.
WriteFile
(
recursive
_f
ile2
,
[]
byte
(
"dir2 1"
),
0644
)
err
=
ioutil
.
WriteFile
(
recursive
F
ile2
,
[]
byte
(
"dir2 1"
),
0644
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
defer
os
.
Remove
(
recursive
_f
ile2
)
defer
os
.
Remove
(
recursive
F
ile2
)
// import absolute path
result
,
err
:=
testParseOne
(
"import "
+
recursive
_f
ile1
)
result
,
err
:=
testParseOne
(
"import "
+
recursive
F
ile1
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
...
...
@@ -319,16 +319,16 @@ func TestRecursiveImport(t *testing.T) {
}
// test absolute recursive import
err
=
ioutil
.
WriteFile
(
recursive
_f
ile1
,
[]
byte
(
err
=
ioutil
.
WriteFile
(
recursive
F
ile1
,
[]
byte
(
`localhost
dir1
import `
+
recursive
_f
ile2
),
0644
)
import `
+
recursive
F
ile2
),
0644
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
// import absolute path
result
,
err
=
testParseOne
(
"import "
+
recursive
_f
ile1
)
result
,
err
=
testParseOne
(
"import "
+
recursive
F
ile1
)
if
err
!=
nil
{
t
.
Fatal
(
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