Przeglądaj źródła

Fix another usage of PromiseDelegate.

Ian Rose 6 lat temu
rodzic
commit
47d864b968
1 zmienionych plików z 2 dodań i 1 usunięć
  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();