From 65f1614a42e1c09cb01b2ffed4627803d9f91e7e Mon Sep 17 00:00:00 2001 From: Steven Luscher Date: Thu, 20 Oct 2022 13:37:55 -0700 Subject: [PATCH] test: repair tests, `space` having been added to the account response (#28518) --- web3.js/test/connection-subscriptions.test.ts | 2 ++ web3.js/test/connection.test.ts | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/web3.js/test/connection-subscriptions.test.ts b/web3.js/test/connection-subscriptions.test.ts index c6c248a8ef..04ab6c33ea 100644 --- a/web3.js/test/connection-subscriptions.test.ts +++ b/web3.js/test/connection-subscriptions.test.ts @@ -97,6 +97,7 @@ describe('Subscriptions', () => { lamports: 0, owner: PublicKey.default.toBase58(), rentEpoch: 0, + space: 0, }, }, }); @@ -210,6 +211,7 @@ describe('Subscriptions', () => { lamports: 0, owner: PublicKey.default.toBase58(), rentEpoch: 0, + space: 0, }, }, }, diff --git a/web3.js/test/connection.test.ts b/web3.js/test/connection.test.ts index 0d7a7f834a..052528a24f 100644 --- a/web3.js/test/connection.test.ts +++ b/web3.js/test/connection.test.ts @@ -230,6 +230,7 @@ describe('Connection', function () { data: ['', 'base64'], executable: false, rentEpoch: 0, + space: 0, }, { owner: '11111111111111111111111111111111', @@ -237,6 +238,7 @@ describe('Connection', function () { data: ['', 'base64'], executable: false, rentEpoch: 0, + space: 0, }, ]; @@ -262,6 +264,7 @@ describe('Connection', function () { data: Buffer.from([]), executable: false, rentEpoch: 0, + space: 0, }, { owner: new PublicKey('11111111111111111111111111111111'), @@ -269,6 +272,7 @@ describe('Connection', function () { data: Buffer.from([]), executable: false, rentEpoch: 0, + space: 0, }, ]; @@ -3935,6 +3939,7 @@ describe('Connection', function () { lamports: LAMPORTS_PER_SOL - 5000, owner: SystemProgram.programId.toBase58(), rentEpoch: 0, + space: 0, }, ]); });