Fix dataSources to count normal errors by nobu-k · Pull Request #129 · sensorbee/sensorbee · GitHub
Skip to content

Fix dataSources to count normal errors#129

Merged
disktnk merged 2 commits into
sensorbee:masterfrom
nobu-k:count-errors
Jan 5, 2017
Merged

Fix dataSources to count normal errors#129
disktnk merged 2 commits into
sensorbee:masterfrom
nobu-k:count-errors

Conversation

@nobu-k

@nobu-k nobu-k commented Dec 21, 2016

Copy link
Copy Markdown
Member

In dataSources in pipe.go, fatal and temporary errors were correctly counted, but normal errors were not.

@nobu-k

nobu-k commented Dec 21, 2016

Copy link
Copy Markdown
Member Author

Comment thread core/pipe_test.go
So(<-stopped, ShouldBeNil)

Convey("Then numError should be increased", func() {
So(srcs.numErrors, ShouldEqual, 1)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that it is better to confirm srcs.numErrors equals 0 before written, and talk with nobu-k, the test suite has an implicit premise that srcs is initialized with srcs.numErrors = 0

@disktnk disktnk self-assigned this Jan 5, 2017
@disktnk

disktnk commented Jan 5, 2017

Copy link
Copy Markdown
Member

@disktnk disktnk merged commit 81a02c4 into sensorbee:master Jan 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants