Skip to content

Commit 975424e

Browse files
committed
Revert "Ensure to handle state updates sequentially"
This reverts commit a2b3696.
1 parent a2b3696 commit 975424e

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ iobroker add statistics
5454
-->
5555
### __WORK IN PROGRESS__
5656

57-
* (klein0r) Ensure to handle state updates sequentially
5857
* (klein0r) Show error if groups are not configured correctly
5958

6059
### 2.3.1 (2023-01-11)

test/integration.js

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ tests.integration(path.join(__dirname, '..'), {
105105
await harness.stopAdapter();
106106
});
107107

108+
beforeEach(async function() {
109+
// Wait until adapter has created all objects/states
110+
await sleep(1000);
111+
});
112+
108113
it('enableStatistics - existing ID', async function () {
109114
this.timeout(60000);
110115

@@ -216,6 +221,11 @@ tests.integration(path.join(__dirname, '..'), {
216221
await harness.stopAdapter();
217222
});
218223

224+
beforeEach(async function() {
225+
// Wait until adapter has created all objects/states
226+
await sleep(1000);
227+
});
228+
219229
it('calculation', async function () {
220230
this.timeout(60000);
221231

@@ -318,6 +328,11 @@ tests.integration(path.join(__dirname, '..'), {
318328
await harness.stopAdapter();
319329
});
320330

331+
beforeEach(async function() {
332+
// Wait until adapter has created all objects/states
333+
await sleep(1000);
334+
});
335+
321336
it('calculation', async function () {
322337
this.timeout(60000);
323338

@@ -417,6 +432,11 @@ tests.integration(path.join(__dirname, '..'), {
417432
await harness.stopAdapter();
418433
});
419434

435+
beforeEach(async function() {
436+
// Wait until adapter has created all objects/states
437+
await sleep(1000);
438+
});
439+
420440
it('calculation', async function () {
421441
this.timeout(60000);
422442

@@ -524,6 +544,11 @@ tests.integration(path.join(__dirname, '..'), {
524544
await harness.stopAdapter();
525545
});
526546

547+
beforeEach(async function() {
548+
// Wait until adapter has created all objects/states
549+
await sleep(1000);
550+
});
551+
527552
it('calculation', async function () {
528553
this.timeout(60000);
529554

@@ -635,6 +660,11 @@ tests.integration(path.join(__dirname, '..'), {
635660
await harness.stopAdapter();
636661
});
637662

663+
beforeEach(async function() {
664+
// Wait until adapter has created all objects/states
665+
await sleep(1000);
666+
});
667+
638668
it('calculation', async function () {
639669
this.timeout(60000);
640670

@@ -714,6 +744,11 @@ tests.integration(path.join(__dirname, '..'), {
714744
await harness.stopAdapter();
715745
});
716746

747+
beforeEach(async function() {
748+
// Wait until adapter has created all objects/states
749+
await sleep(1000);
750+
});
751+
717752
it('calculation', async function () {
718753
this.timeout(60000);
719754
const tempId = `${harness.adapterName}.0.temp.count.${customBooleanObjId}`;
@@ -802,6 +837,11 @@ tests.integration(path.join(__dirname, '..'), {
802837
await harness.stopAdapter();
803838
});
804839

840+
beforeEach(async function() {
841+
// Wait until adapter has created all objects/states
842+
await sleep(1000);
843+
});
844+
805845
it('calculation', async function () {
806846
this.timeout(60000);
807847
const tempId = `${harness.adapterName}.0.temp.sumCount.${customBooleanObjId}`;
@@ -922,6 +962,11 @@ tests.integration(path.join(__dirname, '..'), {
922962
await harness.stopAdapter();
923963
});
924964

965+
beforeEach(async function() {
966+
// Wait until adapter has created all objects/states
967+
await sleep(1000);
968+
});
969+
925970
it('calculation', async function () {
926971
this.timeout(60000);
927972

0 commit comments

Comments
 (0)