From f5e0adc69372b8f5ccf63149184bbaca1e10b0c1 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Fri, 13 Nov 2020 21:00:52 -0800 Subject: [PATCH] test: update expected program log messages --- web3.js/test/bpf-loader.test.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/web3.js/test/bpf-loader.test.js b/web3.js/test/bpf-loader.test.js index e3a42076f4..a5a46e18fc 100644 --- a/web3.js/test/bpf-loader.test.js +++ b/web3.js/test/bpf-loader.test.js @@ -171,9 +171,11 @@ describe('load BPF Rust program', () => { } expect(logs.length).toBeGreaterThanOrEqual(2); - expect(logs[0]).toEqual(`Call BPF program ${program.publicKey.toBase58()}`); + expect(logs[0]).toEqual( + `Program ${program.publicKey.toBase58()} invoke [1]`, + ); expect(logs[logs.length - 1]).toEqual( - `BPF program ${program.publicKey.toBase58()} success`, + `Program ${program.publicKey.toBase58()} success`, ); }); @@ -197,9 +199,11 @@ describe('load BPF Rust program', () => { } expect(logs.length).toBeGreaterThanOrEqual(2); - expect(logs[0]).toEqual(`Call BPF program ${program.publicKey.toBase58()}`); + expect(logs[0]).toEqual( + `Program ${program.publicKey.toBase58()} invoke [1]`, + ); expect(logs[logs.length - 1]).toEqual( - `BPF program ${program.publicKey.toBase58()} success`, + `Program ${program.publicKey.toBase58()} success`, ); }); @@ -224,9 +228,11 @@ describe('load BPF Rust program', () => { } expect(logs.length).toBeGreaterThanOrEqual(2); - expect(logs[0]).toEqual(`Call BPF program ${program.publicKey.toBase58()}`); + expect(logs[0]).toEqual( + `Program ${program.publicKey.toBase58()} invoke [1]`, + ); expect(logs[logs.length - 1]).toEqual( - `BPF program ${program.publicKey.toBase58()} success`, + `Program ${program.publicKey.toBase58()} success`, ); });