Skip to content

Commit

Permalink
fix: Change word order of some test function names so they are not su…
Browse files Browse the repository at this point in the history
…bstrings of each other

If you try and specify test to run, `cargo test` will run **all** tests containing the specified string.
This change makes it possible to run these tests in isolation.
  • Loading branch information
jbencin committed Apr 10, 2023
1 parent d09d49e commit ded7eeb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions testnet/stacks-node/src/tests/l1_observer_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1849,9 +1849,9 @@ fn l2_simple_contract_calls() {
/// (b) assets minted on subnet can be withdrawn to the L1
#[test]
#[allow(unused_assignments)]
fn nft_deposit_and_withdraw_integration_test() {
fn deposit_and_withdraw_nft_integration_test() {
// running locally:
// STACKS_BASE_DIR=~/devel/stacks-blockchain/target/release/stacks-node STACKS_NODE_TEST=1 cargo test --workspace nft_deposit_and_withdraw_integration_test
// STACKS_BASE_DIR=~/devel/stacks-blockchain/target/release/stacks-node STACKS_NODE_TEST=1 cargo test --workspace deposit_and_withdraw_nft_integration_test
if env::var("STACKS_NODE_TEST") != Ok("1".into()) {
return;
}
Expand Down Expand Up @@ -2654,9 +2654,9 @@ fn nft_deposit_and_withdraw_integration_test() {
/// (a) When an NFT deposit to L2 fails user can unlock it from L1 contract
#[test]
#[allow(unused_assignments)]
fn nft_deposit_failure_and_refund_integration_test() {
fn deposit_nft_failure_and_refund_integration_test() {
// running locally:
// STACKS_BASE_DIR=~/devel/stacks-blockchain/target/release/stacks-node STACKS_NODE_TEST=1 cargo test --workspace nft_deposit_failure_and_refund_integration_test
// STACKS_BASE_DIR=~/devel/stacks-blockchain/target/release/stacks-node STACKS_NODE_TEST=1 cargo test --workspace deposit_nft_failure_and_refund_integration_test
if env::var("STACKS_NODE_TEST") != Ok("1".into()) {
return;
}
Expand Down Expand Up @@ -3157,9 +3157,9 @@ fn nft_deposit_failure_and_refund_integration_test() {
/// (b) assets minted on subnet can be withdrawn to the L1
#[test]
#[allow(unused_assignments)]
fn ft_deposit_and_withdraw_integration_test() {
fn deposit_and_withdraw_ft_integration_test() {
// running locally:
// STACKS_BASE_DIR=~/devel/stacks-blockchain/target/release/stacks-node STACKS_NODE_TEST=1 cargo test --workspace ft_deposit_and_withdraw_integration_test
// STACKS_BASE_DIR=~/devel/stacks-blockchain/target/release/stacks-node STACKS_NODE_TEST=1 cargo test --workspace deposit_and_withdraw_ft_integration_test
if env::var("STACKS_NODE_TEST") != Ok("1".into()) {
return;
}
Expand Down Expand Up @@ -3753,9 +3753,9 @@ fn ft_deposit_and_withdraw_integration_test() {
/// (a) When a FT deposit to L2 fails user can unlock it from L1 contract
#[test]
#[allow(unused_assignments)]
fn ft_deposit_failure_and_refund_integration_test() {
fn deposit_ft_failure_and_refund_integration_test() {
// running locally:
// STACKS_BASE_DIR=~/devel/stacks-blockchain/target/release/stacks-node STACKS_NODE_TEST=1 cargo test --workspace ft_deposit_failure_and_refund_integration_test
// STACKS_BASE_DIR=~/devel/stacks-blockchain/target/release/stacks-node STACKS_NODE_TEST=1 cargo test --workspace deposit_ft_failure_and_refund_integration_test
if env::var("STACKS_NODE_TEST") != Ok("1".into()) {
return;
}
Expand Down

0 comments on commit ded7eeb

Please sign in to comment.