Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Commit

Permalink
fix test for go1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeantet committed Mar 19, 2018
1 parent 2cb70f0 commit eb00866
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion entrypoint/parser/logstash/expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func toWhenExpression(lsExpression string) (string, error) {
case TERNARY:

default:
return ktokens, fmt.Errorf("unknow token %s", tok.Type)
return ktokens, fmt.Errorf("unknow token %d", tok.Type)
}
ktokens = ktokens + separator + value
separator = " "
Expand Down
2 changes: 1 addition & 1 deletion processors/filter-eval/eval_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func TestTemplateErrorUrlNotFound(t *testing.T) {
},
)

assert.EqualError(t, err, "Get http://127.0.0.1/iuherfiuhoiuehroiuhzeroiuhaiuzheifuhaerg: dial tcp 127.0.0.1:80: getsockopt: connection refused")
assert.Regexp(t, "Get http://127.0.0.1/iuherfiuhoiuehroiuhzeroiuhaiuzheifuhaerg: dial tcp 127.0.0.1:80: .*: connection refused", err.Error())
}

func TestTemplateErrorPathIsDirectory(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion processors/filter-grok/grok_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (p *processor) fixGrokMatch(conf interface{}) (map[string][]string, error)
case string:
fixMatch[fieldName] = []string{v}
default:
return fixMatch, fmt.Errorf("unsupported match value format %V", reflect.TypeOf(v))
return fixMatch, fmt.Errorf("unsupported match value format %v", reflect.TypeOf(v))
}
}
default:
Expand Down

0 comments on commit eb00866

Please sign in to comment.