Skip to content

Commit

Permalink
Fix end() called twice in headless-tests.js
Browse files Browse the repository at this point in the history
Unit tests should not be designed in a way to allow
t.end() to be called more than once, re: FAB-891.

Change-Id: I000c31e8e8ab24d2ecbfb12229e9c4e20000efb1
Signed-off-by: cdaughtr <cdaughtr@us.ibm.com>
  • Loading branch information
cdaughtr committed Nov 1, 2016
1 parent 21473c4 commit 83313c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/unit/headless-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ test('\n\n ** FileKeyValueStore - read and write test', function(t){
// Log the rejection reason
function(reason){
t.fail('FileKeyValueStore read and write test: Failed getValue, reason: '+reason);
t.end();
});

t.end();
Expand Down

0 comments on commit 83313c1

Please sign in to comment.