diff --git a/web3.js/test/connection.test.js b/web3.js/test/connection.test.js index a95520d98c..8cbfea656e 100644 --- a/web3.js/test/connection.test.js +++ b/web3.js/test/connection.test.js @@ -844,7 +844,10 @@ test('account change notification', async () => { mockCallback, ); - const balanceNeeded = await connection.getMinimumBalanceForRentExemption(0); + const balanceNeeded = Math.max( + await connection.getMinimumBalanceForRentExemption(0), + 1, + ); await connection.requestAirdrop(owner.publicKey, SOL_LAMPORTS); try {