Browse Source

Fix another usage of PromiseDelegate.

Ian Rose 6 years ago
parent
commit
47d864b968
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tests/test-coreutils/src/statedb.spec.ts

+ 2 - 1
tests/test-coreutils/src/statedb.spec.ts

@@ -37,7 +37,8 @@ describe('StateDB', () => {
       await prepopulate.save(key, incorrect);
       let value = await prepopulate.fetch(key);
       expect(value).to.equal(incorrect);
-      await transform.resolve(transformation);
+      transform.resolve(transformation);
+      await transform.promise;
       value = await db.fetch(key);
       expect(value).to.equal(correct);
       await db.clear();