Skip to content

Commit

Permalink
Fix flaky test (#2348)
Browse files Browse the repository at this point in the history
  • Loading branch information
nventuro authored Mar 10, 2023
1 parent 322e72b commit 58831a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/solidity-utils/test/WordCodec.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { deploy } from '@balancer-labs/v2-helpers/src/contract';
import { bn, negate } from '@balancer-labs/v2-helpers/src/numbers';
import { random } from 'lodash';
import { ONES_BYTES32, ZERO_BYTES32 } from '@balancer-labs/v2-helpers/src/constants';
import { hexZeroPad } from 'ethers/lib/utils';

describe('WordCodec', () => {
let lib: Contract;
Expand Down Expand Up @@ -162,7 +163,7 @@ describe('WordCodec', () => {
});

describe('insert', () => {
const word = bn(random(2 ** 255));
const word = hexZeroPad(bn(random(2 ** 255)).toHexString(), 32);

describe('unsigned', () => {
it('reverts with zero bit length', async () => {
Expand Down

0 comments on commit 58831a5

Please sign in to comment.