mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-05-05 02:22:56 +00:00
fix up "atleast" -> "at least"
Change-type: patch Signed-off-by: Matthew McGinn <matthew@balena.io>
This commit is contained in:
parent
95e0a7d83d
commit
15c57a86b4
@ -267,7 +267,7 @@ The --grep option, when specified, will trigger mocha to only run tests matching
|
|||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
Make sure you are running atleast:
|
Make sure you are running at least:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
node -v # >= 12.16.2
|
node -v # >= 12.16.2
|
||||||
|
@ -110,7 +110,7 @@ export class APIBinder {
|
|||||||
if (!stateReportHealthy) {
|
if (!stateReportHealthy) {
|
||||||
log.info(
|
log.info(
|
||||||
stripIndent`
|
stripIndent`
|
||||||
Healthcheck failure - Atleast ONE of the following conditions must be true:
|
Healthcheck failure - At least ONE of the following conditions must be true:
|
||||||
- No connectivityCheckEnabled ? ${!(connectivityCheckEnabled === true)}
|
- No connectivityCheckEnabled ? ${!(connectivityCheckEnabled === true)}
|
||||||
- device state is disconnected ? ${!(this.deviceState.connected === true)}
|
- device state is disconnected ? ${!(this.deviceState.connected === true)}
|
||||||
- stateReportErrors less then 3 ? ${CurrentState.stateReportErrors < 3}`,
|
- stateReportErrors less then 3 ? ${CurrentState.stateReportErrors < 3}`,
|
||||||
|
@ -284,7 +284,7 @@ export class DeviceState extends (EventEmitter as new () => DeviceStateEventEmit
|
|||||||
if (!applyTargetHealthy) {
|
if (!applyTargetHealthy) {
|
||||||
log.info(
|
log.info(
|
||||||
stripIndent`
|
stripIndent`
|
||||||
Healthcheck failure - Atleast ONE of the following conditions must be true:
|
Healthcheck failure - At least ONE of the following conditions must be true:
|
||||||
- No applyInProgress ? ${!(this.applyInProgress === true)}
|
- No applyInProgress ? ${!(this.applyInProgress === true)}
|
||||||
- fetchesInProgress ? ${this.applications.fetchesInProgress > 0}
|
- fetchesInProgress ? ${this.applications.fetchesInProgress > 0}
|
||||||
- cycleTimeWithinInterval ? ${cycleTimeWithinInterval}`,
|
- cycleTimeWithinInterval ? ${cycleTimeWithinInterval}`,
|
||||||
|
@ -439,7 +439,7 @@ describe('deviceState', () => {
|
|||||||
expect(Log.info).to.be.calledOnce;
|
expect(Log.info).to.be.calledOnce;
|
||||||
expect((Log.info as SinonSpy).lastCall?.lastArg).to.equal(
|
expect((Log.info as SinonSpy).lastCall?.lastArg).to.equal(
|
||||||
stripIndent`
|
stripIndent`
|
||||||
Healthcheck failure - Atleast ONE of the following conditions must be true:
|
Healthcheck failure - At least ONE of the following conditions must be true:
|
||||||
- No applyInProgress ? false
|
- No applyInProgress ? false
|
||||||
- fetchesInProgress ? false
|
- fetchesInProgress ? false
|
||||||
- cycleTimeWithinInterval ? false`,
|
- cycleTimeWithinInterval ? false`,
|
||||||
|
@ -450,7 +450,7 @@ describe('ApiBinder', () => {
|
|||||||
expect(Log.info).to.be.calledOnce;
|
expect(Log.info).to.be.calledOnce;
|
||||||
expect((Log.info as SinonSpy).lastCall?.lastArg).to.equal(
|
expect((Log.info as SinonSpy).lastCall?.lastArg).to.equal(
|
||||||
stripIndent`
|
stripIndent`
|
||||||
Healthcheck failure - Atleast ONE of the following conditions must be true:
|
Healthcheck failure - At least ONE of the following conditions must be true:
|
||||||
- No connectivityCheckEnabled ? false
|
- No connectivityCheckEnabled ? false
|
||||||
- device state is disconnected ? false
|
- device state is disconnected ? false
|
||||||
- stateReportErrors less then 3 ? false`,
|
- stateReportErrors less then 3 ? false`,
|
||||||
|
@ -57,7 +57,7 @@ const STUBBED_VALUES = {
|
|||||||
* AND MULTIPLE TEST CASES WILL USE THEM THEN ADD THEM HERE
|
* AND MULTIPLE TEST CASES WILL USE THEM THEN ADD THEM HERE
|
||||||
* OTHERWISE YOU CAN ADD STUBS ON A PER TEST CASE BASIS
|
* OTHERWISE YOU CAN ADD STUBS ON A PER TEST CASE BASIS
|
||||||
*
|
*
|
||||||
* EXAMPLE: We stub ApplicationManager so there is atleast 1 running app
|
* EXAMPLE: We stub ApplicationManager so there is at least 1 running app
|
||||||
*
|
*
|
||||||
* You can see all the stubbed values convientiely in STUBBED_VALUES.
|
* You can see all the stubbed values convientiely in STUBBED_VALUES.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user