fix: account change test broken on beta testnet

This commit is contained in:
Justin Starry
2019-12-12 22:44:53 -08:00
committed by Michael Vines
parent 7682f55347
commit 56cad06568

View File

@ -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 {