UI - don't re-throw error when fetching features (#4669)

This commit is contained in:
Matthew Irish
2018-05-31 16:22:49 -05:00
committed by GitHub
parent 86d4b3291c
commit 2b7440524e
2 changed files with 6 additions and 7 deletions

View File

@@ -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(),

View File

@@ -103,9 +103,8 @@ 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(
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'
);