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

Fix for issue #27: smart plugin returns error if nothing is collected #28

Merged
merged 2 commits into from
Sep 8, 2016
Merged

Fix for issue #27: smart plugin returns error if nothing is collected #28

merged 2 commits into from
Sep 8, 2016

Conversation

obourdon
Copy link

@obourdon obourdon commented Sep 7, 2016

Subject says it all

will wait for TravisCI to run tests before potentially submitting new revision as tests execution is system dependant

@obourdon
Copy link
Author

obourdon commented Sep 7, 2016

cc: @intelsdi-x/plugin-maintainers

Could you please review and merge

@@ -279,7 +279,7 @@ func TestCollectMetrics(t *testing.T) {

ReadSmartData = func(device string,
sysutilProvider SysutilProvider) (*SmartValues, error) {
return &SmartValues{}, nil
return nil, errors.New("x not valid disk")
Copy link
Contributor

Choose a reason for hiding this comment

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

why is it error out all the time?

Copy link
Author

Choose a reason for hiding this comment

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

In fact as the next snippet was removed in a previous commit, I had to adapt the code so that the tests pass

@candysmurf
Copy link
Contributor

LGTM

@candysmurf candysmurf merged commit bd97d46 into intelsdi-x:master Sep 8, 2016
@obourdon obourdon deleted the fix_4_issue_27 branch September 8, 2016 06:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants