Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Aug 7, 2024
1 parent 12a6dae commit cbbe634
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions plugin-server/tests/cdp/hog-watcher.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ describe('HogWatcher', () => {
}
`)
})

it('should force degraded', async () => {
await watcher.forceStateChange('id1', HogWatcherState.degraded)
expect(await watcher.getState('id1')).toMatchInlineSnapshot(`
Expand All @@ -219,19 +218,19 @@ describe('HogWatcher', () => {
await watcher.forceStateChange('id1', HogWatcherState.disabledForPeriod)
expect(await watcher.getState('id1')).toMatchInlineSnapshot(`
Object {
"rating": 1,
"rating": 0,
"state": 3,
"tokens": 10000,
"tokens": 0,
}
`)
})
it('should force disabledIndefinitely', async () => {
await watcher.forceStateChange('id1', HogWatcherState.disabledIndefinitely)
expect(await watcher.getState('id1')).toMatchInlineSnapshot(`
Object {
"rating": 1,
"state": 3,
"tokens": 10000,
"rating": 0,
"state": 4,
"tokens": 0,
}
`)
})
Expand Down

0 comments on commit cbbe634

Please sign in to comment.