Skip to content

Commit

Permalink
UI - don't re-throw error when fetching features (#4669)
Browse files Browse the repository at this point in the history
  • Loading branch information
meirish authored May 31, 2018
1 parent 86d4b32 commit 2b74405
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ui/app/services/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default Service.extend({
this.setFeatures(response);
return;
} catch (err) {
throw err;
// if we fail here, we're likely in DR Secondary mode and don't need to worry about it
}
}).keepLatest(),

Expand Down
11 changes: 5 additions & 6 deletions ui/tests/acceptance/enterprise-replication-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,11 @@ test('replication', function(assert) {
`/vault/replication/performance/secondaries`,
'redirects to the secondaries page'
);
assert
.dom('[data-test-flash-message-body]:contains(The performance mount filter)')
.hasText(
`The performance mount filter config for the secondary ${secondaryName} was successfully deleted.`,
'renders success flash upon deletion'
);
assert.equal(
find('[data-test-flash-message-body]:contains(The performance mount filter)').text().trim(),
`The performance mount filter config for the secondary ${secondaryName} was successfully deleted.`,
'renders success flash upon deletion'
);
click('[data-test-flash-message-body]:contains(The performance mount filter)');
});

Expand Down

0 comments on commit 2b74405

Please sign in to comment.