Skip to content

Commit a96f462

Browse files
committed
fix: compilation after worker macro was merged
1 parent 7a94cd5 commit a96f462

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

contract/vault/tests/happy_path.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use near_sdk::{json_types::U128, AccountId};
22
use templar_common::{interest_rate_strategy::InterestRateStrategy, number::Decimal};
33
use test_utils::{
4-
controller::vault::UnifiedVaultController, setup_test, setup_test_w, ContractController,
5-
MarketController, UnifiedMarketController,
4+
controller::vault::UnifiedVaultController, setup_test, ContractController, MarketController,
5+
UnifiedMarketController,
66
};
77

88
#[tokio::test]

contract/vault/tests/invariants.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use near_sdk::{json_types::U128, AccountId};
22
use templar_common::{interest_rate_strategy::InterestRateStrategy, number::Decimal};
33
use test_utils::{
4-
controller::vault::UnifiedVaultController, setup_test, setup_test_w, ContractController,
5-
MarketController, UnifiedMarketController,
4+
controller::vault::UnifiedVaultController, setup_test, ContractController, MarketController,
5+
UnifiedMarketController,
66
};
77

88
// TODO(unit?): on allocation-failure, reconcile to idle

test-utils/src/lib.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ macro_rules! accounts {
8282
}
8383

8484
#[macro_export]
85-
macro_rules! setup_test_w {
85+
macro_rules! setup_test {
8686
($w:ident extract($($e:ident),*) accounts($($n:ident),*) config($f:expr)) => {
8787
$crate::accounts!($w, $($n),*);
8888
let s = $crate::setup_everything(&$w, $f, |_| {}).await;
@@ -100,12 +100,8 @@ macro_rules! setup_test_w {
100100
let $crate::SetupEverything { $($e,)* .. } = s;
101101
};
102102
($w:ident extract($($e:ident),*) accounts($($n:ident),*)) => {
103-
$crate::setup_test_w!($w extract($($e),*) accounts($($n),*) config(|_| {}) vconfig(|_| {}))
103+
$crate::setup_test!($w extract($($e),*) accounts($($n),*) config(|_| {}) vconfig(|_| {}))
104104
};
105-
}
106-
107-
#[macro_export]
108-
macro_rules! setup_test {
109105
(extract($($e:ident),*) accounts($($n:ident),*) config($f:expr)) => {
110106
let worker = near_workspaces::sandbox().await.unwrap();
111107
$crate::accounts!(worker, $($n),*);

0 commit comments

Comments
 (0)