From 99a91874e30446eb0a7524f290242254218011e2 Mon Sep 17 00:00:00 2001 From: Jon C Date: Sat, 8 Mar 2025 01:25:24 +0100 Subject: [PATCH 1/2] CI: Fix lint and test program jobs #### Problem We made spl-token-metadata-example purely a cdylib in #3, but the tests were using it as a library. #### Summary of changes That code wasn't being used anyway, so force the test to use the built BPF program. Also clean up some other stuff. --- program/Cargo.toml | 2 +- program/tests/program_test.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/program/Cargo.toml b/program/Cargo.toml index 6f9072d..1fb9125 100644 --- a/program/Cargo.toml +++ b/program/Cargo.toml @@ -2,7 +2,7 @@ name = "spl-token-metadata-example" version = "0.3.0" description = "Solana Program Library Token Metadata Example Program" -documentation = "https://docs.rs/spl-token-group-interface" +documentation = "https://docs.rs/spl-token-metadata-example" authors = { workspace = true } repository = { workspace = true } homepage = { workspace = true } diff --git a/program/tests/program_test.rs b/program/tests/program_test.rs index 19e91ee..326cbfc 100644 --- a/program/tests/program_test.rs +++ b/program/tests/program_test.rs @@ -34,7 +34,7 @@ pub async fn setup( let mut program_test = ProgramTest::new( "spl_token_metadata_example", *program_id, - processor!(spl_token_metadata_example::processor::process), + None, ); program_test.prefer_bpf(false); // simplicity in the build From f9a26e1d0688003c9e80fd5e4a04b91b4c013810 Mon Sep 17 00:00:00 2001 From: Jon C Date: Sat, 8 Mar 2025 01:38:41 +0100 Subject: [PATCH 2/2] Rustfmt --- program/tests/program_test.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/program/tests/program_test.rs b/program/tests/program_test.rs index 326cbfc..3acca53 100644 --- a/program/tests/program_test.rs +++ b/program/tests/program_test.rs @@ -31,11 +31,7 @@ pub async fn setup( Arc>, Arc, ) { - let mut program_test = ProgramTest::new( - "spl_token_metadata_example", - *program_id, - None, - ); + let mut program_test = ProgramTest::new("spl_token_metadata_example", *program_id, None); program_test.prefer_bpf(false); // simplicity in the build program_test.add_program(