ci: move solana-client-test to nextest (#33185)
This commit is contained in:
parent
3ffd78f2d7
commit
99ef411600
|
@ -5646,6 +5646,7 @@ name = "solana-client-test"
|
||||||
version = "1.17.0"
|
version = "1.17.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"futures-util",
|
"futures-util",
|
||||||
|
"rand 0.8.5",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"solana-client",
|
"solana-client",
|
||||||
"solana-ledger",
|
"solana-ledger",
|
||||||
|
|
|
@ -31,7 +31,6 @@ if [ ! "$LIMIT" -gt "$INDEX" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DONT_USE_NEXTEST_PACKAGES=(
|
DONT_USE_NEXTEST_PACKAGES=(
|
||||||
solana-client-test
|
|
||||||
solana-cargo-build-sbf
|
solana-cargo-build-sbf
|
||||||
solana-core
|
solana-core
|
||||||
)
|
)
|
||||||
|
|
|
@ -12,6 +12,7 @@ edition = { workspace = true }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
futures-util = { workspace = true }
|
futures-util = { workspace = true }
|
||||||
|
rand = { workspace = true }
|
||||||
serde_json = { workspace = true }
|
serde_json = { workspace = true }
|
||||||
solana-client = { workspace = true }
|
solana-client = { workspace = true }
|
||||||
solana-ledger = { workspace = true }
|
solana-ledger = { workspace = true }
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
use {
|
use {
|
||||||
futures_util::StreamExt,
|
futures_util::StreamExt,
|
||||||
|
rand::Rng,
|
||||||
serde_json::{json, Value},
|
serde_json::{json, Value},
|
||||||
solana_ledger::{blockstore::Blockstore, get_tmp_ledger_path},
|
solana_ledger::{blockstore::Blockstore, get_tmp_ledger_path},
|
||||||
solana_pubsub_client::{nonblocking, pubsub_client::PubsubClient},
|
solana_pubsub_client::{nonblocking, pubsub_client::PubsubClient},
|
||||||
|
@ -28,7 +29,6 @@ use {
|
||||||
commitment_config::{CommitmentConfig, CommitmentLevel},
|
commitment_config::{CommitmentConfig, CommitmentLevel},
|
||||||
native_token::sol_to_lamports,
|
native_token::sol_to_lamports,
|
||||||
pubkey::Pubkey,
|
pubkey::Pubkey,
|
||||||
rpc_port,
|
|
||||||
signature::{Keypair, Signer},
|
signature::{Keypair, Signer},
|
||||||
system_program, system_transaction,
|
system_program, system_transaction,
|
||||||
},
|
},
|
||||||
|
@ -41,7 +41,7 @@ use {
|
||||||
collections::HashSet,
|
collections::HashSet,
|
||||||
net::{IpAddr, SocketAddr},
|
net::{IpAddr, SocketAddr},
|
||||||
sync::{
|
sync::{
|
||||||
atomic::{AtomicBool, AtomicU16, AtomicU64, Ordering},
|
atomic::{AtomicBool, AtomicU64, Ordering},
|
||||||
Arc, RwLock,
|
Arc, RwLock,
|
||||||
},
|
},
|
||||||
thread::sleep,
|
thread::sleep,
|
||||||
|
@ -51,12 +51,10 @@ use {
|
||||||
tungstenite::connect,
|
tungstenite::connect,
|
||||||
};
|
};
|
||||||
|
|
||||||
static NEXT_RPC_PUBSUB_PORT: AtomicU16 = AtomicU16::new(rpc_port::DEFAULT_RPC_PUBSUB_PORT);
|
|
||||||
|
|
||||||
fn pubsub_addr() -> SocketAddr {
|
fn pubsub_addr() -> SocketAddr {
|
||||||
SocketAddr::new(
|
SocketAddr::new(
|
||||||
IpAddr::V4(Ipv4Addr::UNSPECIFIED),
|
IpAddr::V4(Ipv4Addr::UNSPECIFIED),
|
||||||
NEXT_RPC_PUBSUB_PORT.fetch_add(1, Ordering::Relaxed),
|
rand::thread_rng().gen_range(1024..65535),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue