Skip to content

Commit

Permalink
Ignore unrelated errors in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
raucao committed Jul 26, 2024
1 parent 03c6052 commit 0cbc80b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/unit/remotestorage-suite.js
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,9 @@ define(['require', 'tv4', './build/eventhandling', './build/util'],
desc: "#connect throws DiscoveryError on empty href",
run: function(env, test) {
env.rs.on('error', function(e) {
test.assertAnd(e instanceof RemoteStorage.DiscoveryError, true);
test.done();
if (e instanceof RemoteStorage.DiscoveryError) {
test.done();
}
});
env.rs.connect('someone@somewhere');
}
Expand Down

0 comments on commit 0cbc80b

Please sign in to comment.