Browse Source

examples/lockup: Adjust test params

Armani Ferrante 4 năm trước cách đây
mục cha
commit
616c2e2fa7
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      examples/lockup/tests/lockup.js

+ 3 - 3
examples/lockup/tests/lockup.js

@@ -139,8 +139,8 @@ describe("Lockup and Registry", () => {
 
   it("Creates a vesting account", async () => {
     const beneficiary = provider.wallet.publicKey;
-    const endTs = new anchor.BN(Date.now() / 1000 + 3);
-    const periodCount = new anchor.BN(5);
+    const endTs = new anchor.BN(Date.now() / 1000 + 5);
+    const periodCount = new anchor.BN(2);
     const depositAmount = new anchor.BN(100);
 
     const vault = new anchor.web3.Account();
@@ -220,7 +220,7 @@ describe("Lockup and Registry", () => {
   });
 
   it("Waits for a vesting period to pass", async () => {
-    await serumCmn.sleep(5 * 1000);
+    await serumCmn.sleep(10 * 1000);
   });
 
   it("Withdraws from the vesting account", async () => {