-
-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
f3e285e
commit 4ff307d
Showing
2 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
10 changes: 4 additions & 6 deletions
10
tests/integration/sentinel/transitions/sentinel-transition-error-log.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
const utils = require('@utils'); | ||
const { expect } = require('chai'); | ||
|
||
describe('Sentinel transition error log', async function() { | ||
|
||
after(async () => await utils.revertSettings(true)); | ||
|
||
it('log error for unkown transition', async () => { | ||
it('log error for unknown transition', async () => { | ||
const unknownTransitionPattern = /Unknown transition "something"/; | ||
const settings = { | ||
transitions: { | ||
something: true | ||
} | ||
}; | ||
const collectLogs = await utils.collectSentinelLogs(unknownTransitionPattern); | ||
|
||
const waitForLogs = await utils.waitForSentinelLogs(unknownTransitionPattern); | ||
await utils.updateSettings(settings, 'sentinel'); | ||
const logs = await collectLogs(); | ||
expect(logs).to.have.lengthOf(1); | ||
await waitForLogs.promise; | ||
}); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters