Serialize test (#9655)
This commit is contained in:
@ -258,6 +258,7 @@ impl HelperObject<BPFError> for HelperSolAllocFree {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use serial_test_derive::serial;
|
||||
use solana_sdk::{
|
||||
instruction::{AccountMeta, Instruction},
|
||||
pubkey::Pubkey,
|
||||
@ -403,10 +404,10 @@ mod tests {
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
// Ignore this test: solana_logger conflicts when running tests concurrently,
|
||||
// Serialize this test: solana_logger conflicts when running tests concurrently,
|
||||
// this results in the bad string length being ignored and not returning an error
|
||||
#[ignore]
|
||||
#[test]
|
||||
#[serial]
|
||||
fn test_helper_sol_log() {
|
||||
let string = "Gaggablaghblagh!";
|
||||
let addr = string.as_ptr() as *const _ as u64;
|
||||
@ -431,7 +432,10 @@ mod tests {
|
||||
.unwrap_err();
|
||||
}
|
||||
|
||||
// Serialize this test: solana_logger conflicts when running tests concurrently,
|
||||
// this results in the bad string length being ignored and not returning an error
|
||||
#[test]
|
||||
#[serial]
|
||||
fn test_helper_sol_log_u64() {
|
||||
solana_logger::setup_with_default("solana=info");
|
||||
|
||||
|
Reference in New Issue
Block a user