Skip to content

Commit

Permalink
change constant name
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Mancke committed Jun 20, 2016
1 parent 43cd04b commit ba8ca96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composition/file_content_loader.go
Expand Up @@ -9,7 +9,7 @@ import (
"time"
)

var RequestProcessorsNotApplicable = errors.New("request processors are not apliable on file content")
var ResponseProcessorsNotApplicable = errors.New("request processors are not apliable on file content")

type FileContentLoader struct {
parser ContentParser
Expand All @@ -23,7 +23,7 @@ func NewFileContentLoader() *FileContentLoader {

func (loader *FileContentLoader) Load(fd *FetchDefinition) (Content, error) {
if fd.RespProc != nil {
return nil, RequestProcessorsNotApplicable
return nil, ResponseProcessorsNotApplicable
}
filename := strings.TrimPrefix(fd.URL, FileURLPrefix)
f, err := os.Open(filename)
Expand Down
2 changes: 1 addition & 1 deletion composition/file_content_loader_test.go
Expand Up @@ -67,7 +67,7 @@ func Test_FileContentLoader_RequestProcessor(t *testing.T) {
fd.RespProc = NewMockResponseProcessor(ctrl)

_, err := NewFileContentLoader().Load(fd)
a.Equal(RequestProcessorsNotApplicable, err)
a.Equal(ResponseProcessorsNotApplicable, err)
}

const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
Expand Down

0 comments on commit ba8ca96

Please sign in to comment.