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

MAID-2688 fix/error: adds missing error handling for failed app_reconnect #252

Merged
merged 1 commit into from Jun 21, 2018
Merged

Conversation

hunterlester
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Jun 20, 2018

Coverage Status

Coverage increased (+0.5%) to 95.481% when pulling 969bdb7 on hunterlester:2688 into 830f696 on maidsafe:master.

@@ -53,22 +53,6 @@ const readFileInfo = (fileInfo) => {
? new Buffer(0)
: new Buffer(ref.reinterpret(file.user_metadata_ptr, file.user_metadata_len));

if (user_metadata_ptr) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why remove this branch?
The addition of error handling at https://github.com/maidsafe/safe_app_nodejs/pull/252/files#diff-c2284895deccc698165325b396ad79b9R93, creates a decrease in code coverage however I'm not able to create a testing condition where app_reconnect throws an error in mock routing.
Thus my search for a way to increase coverage to make coveralls happy.
The above block of code is safe to remove because the condition can never be met since user_metadata_ptr will always be an instance of Buffer.
cc: @bochaco

@bochaco bochaco merged commit fe5dc54 into maidsafe-archive:master Jun 21, 2018
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.

None yet

3 participants