Skip to content

Failed to call zig asyncAggregateWithRandomness #37

@twoeths

Description

@twoeths

Run this test on a Linux x86_64 host:

it.only("fuzzy test - asyncAggregateWithRandomness", async () => {
      let count = 0;
      while (true) {
        const now = Date.now();
        for (let i = 0; i < 1000; i++) {
          const {pk, sig} = await asyncAggregateWithRandomness(sets);
          expect(verify(msg, pk, sig)).toBeTrue();
        }
        console.log("asyncAggregateWithRandomness", (Date.now() - now) / 1000, count);
        count++;
      }
});

it failed at round 32

asyncAggregateWithRandomness 9.267 29
asyncAggregateWithRandomness 8.934 30
asyncAggregateWithRandomness 9.166 31
109 |                   sigOut.blst_point,
110 |                   jscallback
111 |           );
112 |
113 |           if (res !== 0) {
114 |                   throw new Error("Failed to aggregate with randomness res = " + res);
               ^
error: Failed to aggregate with randomness res = 1
      at <anonymous> (/home/devops/tuyen/blst-z/test/bun/src/aggregateWithRandomness.ts:114:10)
      at new Promise (1:11)
      at asyncAggregateWithRandomness (/home/devops/tuyen/blst-z/test/bun/src/aggregateWithRandomness.ts:75:9)
      at <anonymous> (/home/devops/tuyen/blst-z/test/bun/test/unit/aggregateWithRandomness.test.ts:206:35)
✗ Aggregate With Randomness > asyncAggregateWithRandomness() > fuzzy test - asyncAggregateWithRandomness [295937.07ms]

 0 pass
 1 fail

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions