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
b600ea47
Commit
b600ea47
authored
Sep 29, 2017
by
Matthew Fisher
Committed by
GitHub
Sep 29, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2982 from HotelsDotCom/pkg-lint-test-panics
Avoid panics if test is failing
parents
acd113ec
a6872c12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lint_test.go
pkg/lint/lint_test.go
+2
-2
No files found.
pkg/lint/lint_test.go
View file @
b600ea47
...
...
@@ -68,7 +68,7 @@ func TestBadChart(t *testing.T) {
func
TestInvalidYaml
(
t
*
testing
.
T
)
{
m
:=
All
(
badYamlFileDir
)
.
Messages
if
len
(
m
)
!=
1
{
t
.
Error
f
(
"All didn't fail with expected errors, got %#v"
,
m
)
t
.
Fatal
f
(
"All didn't fail with expected errors, got %#v"
,
m
)
}
if
!
strings
.
Contains
(
m
[
0
]
.
Err
.
Error
(),
"deliberateSyntaxError"
)
{
t
.
Errorf
(
"All didn't have the error for deliberateSyntaxError"
)
...
...
@@ -78,7 +78,7 @@ func TestInvalidYaml(t *testing.T) {
func
TestBadValues
(
t
*
testing
.
T
)
{
m
:=
All
(
badValuesFileDir
)
.
Messages
if
len
(
m
)
!=
1
{
t
.
Error
f
(
"All didn't fail with expected errors, got %#v"
,
m
)
t
.
Fatal
f
(
"All didn't fail with expected errors, got %#v"
,
m
)
}
if
!
strings
.
Contains
(
m
[
0
]
.
Err
.
Error
(),
"cannot unmarshal"
)
{
t
.
Errorf
(
"All didn't have the error for invalid key format: %s"
,
m
[
0
]
.
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