Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error - occasional test fail due to randomly generated test data #474

Open
jeremy-babylonlabs opened this issue Dec 8, 2024 · 0 comments

Comments

@jeremy-babylonlabs
Copy link
Contributor

FAIL node tests/utils/globalParams.test.ts (32.541 s)
  ● globalParams › should return correct values before next activation height

    expect(received).toEqual(expected) // deep equality

    - Expected  - 12
    + Received  + 12

    @@ -1,8 +1,8 @@
      Object {
    -   "activationHeight": 9479,
    -   "confirmationDepth": 7,
    +   "activationHeight": 12652,
    +   "confirmationDepth": 13,
        "covenantPks": Array [
          "02ebec4f79f63da344cf49df2271ec67ae4ecd8a9969f7c0a4c3560d2b70f87b66",
          "03eca97478c436168d1fcb3c9dcc5ec3646649164dcebf1ca225913c5450c9d5f4",
          "03808b40895f135cc26744036c264327e5fe78d1754da678b4d7865ce72f42aab7",
          "02482fc2a739ef9bca89c4162f43db3396e4753e482824d287a575c46a4c1cfda5",
    @@ -10,16 +10,16 @@
          "0294d6a2044fb4e9c842b7f9764514e83f664fb9b82bc0b0d86857b77801f6c81c",
    +   "confirmationDepth": 13,
        "covenantPks": Array [
          "02ebec4f79f63da344cf49df2271ec67ae4ecd8a9969f7c0a4c3560d2b70f87b66",
          "03eca97478c436168d1fcb3c9dcc5ec3646649164dcebf1ca225913c5450c9d5f4",
          "03808b40895f135cc26744036c264327e5fe78d1754da678b4d7865ce72f42aab7",
          "02482fc2a739ef9bca89c4162f43db3396e4753e482824d287a575c46a4c1cfda5",
    @@ -10,16 +10,16 @@
          "0294d6a2044fb4e9c842b7f9764514e83f664fb9b82bc0b0d86857b77801f6c81c",
          "02ed708e098882afd874f31eb6174ead2073ad48fe3151e268f2379b68ab46d3d6",
          "02621e15c71174f0d2091bd3258162b418f084df498469e74fabc2adf34bd1328f",
        ],
        "covenantQuorum": 5,
    -   "maxStakingAmountSat": 19296929,
    -   "maxStakingTimeBlocks": 1,
    -   "minStakingAmountSat": 21388,
    -   "minStakingTimeBlocks": 1,
    -   "stakingCapHeight": 5720,
    -   "stakingCapSat": 9494,
    -   "tag": "75bc7f4c",
    -   "unbondingFeeSat": 66,
    -   "unbondingTime": 43286,
    -   "version": 2,
    +   "maxStakingAmountSat": 43230367,
    +   "maxStakingTimeBlocks": 74,
    +   "minStakingAmountSat": 62328,
    +   "minStakingTimeBlocks": 74,
    +   "stakingCapHeight": 7521,
    +   "stakingCapSat": 9890,
    +   "tag": "1e87cdbd",
    +   "unbondingFeeSat": 95,
    +   "unbondingTime": 28042,
    +   "version": 3,
      }

      71 |     );
      72 |     expect(result.currentVersion).toEqual(param);
    > 73 |     expect(result.nextVersion).toEqual(globalParams[1]);
         |                                ^
      74 |     expect(result.isApprochingNextVersion).toBeFalsy();
      75 |   });
      76 |

      at Object.toEqual (tests/utils/globalParams.test.ts:73:32)


Test Suites: 1 failed, 21 passed, 22 total
Tests:       1 failed, 133 passed, 134 total
Snapshots:   0 total
Time:        32.876 s
Ran all test suites. @globalParams.test.ts 
@jeremy-babylonlabs jeremy-babylonlabs changed the title occasional test fail due to randomly generated test data error - occasional test fail due to randomly generated test data Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant