Browse Source
Correct typo in actor tests
debug-collab-settlement
Lucas Soriano del Pino
3 years ago
No known key found for this signature in database
GPG Key ID: EE611E973A1530E7
2 changed files with
5 additions and
5 deletions
-
daemon/tests/happy_path.rs
-
daemon/tests/harness/mocks/mod.rs
|
|
@ -40,7 +40,7 @@ async fn taker_takes_order_and_maker_rejects() { |
|
|
|
.await |
|
|
|
.unwrap(); |
|
|
|
|
|
|
|
taker.mocks.mock_oracle_annoucement().await; |
|
|
|
taker.mocks.mock_oracle_announcement().await; |
|
|
|
taker.take_order(received.clone(), Usd::new(dec!(10))).await; |
|
|
|
|
|
|
|
let (taker_cfd, maker_cfd) = next_cfd(taker.cfd_feed(), maker.cfd_feed()).await.unwrap(); |
|
|
@ -78,12 +78,12 @@ async fn taker_takes_order_and_maker_accepts_and_contract_setup() { |
|
|
|
.await |
|
|
|
.unwrap(); |
|
|
|
|
|
|
|
taker.mocks.mock_oracle_annoucement().await; |
|
|
|
taker.mocks.mock_oracle_announcement().await; |
|
|
|
taker.take_order(received.clone(), Usd::new(dec!(5))).await; |
|
|
|
let (_, _) = next_cfd(taker.cfd_feed(), maker.cfd_feed()).await.unwrap(); |
|
|
|
|
|
|
|
maker.mocks.mock_oracle_annoucement().await; |
|
|
|
taker.mocks.mock_oracle_annoucement().await; |
|
|
|
maker.mocks.mock_oracle_announcement().await; |
|
|
|
taker.mocks.mock_oracle_announcement().await; |
|
|
|
|
|
|
|
maker.mocks.mock_party_params().await; |
|
|
|
taker.mocks.mock_party_params().await; |
|
|
|
|
|
@ -54,7 +54,7 @@ impl Mocks { |
|
|
|
.in_sequence(&mut seq); |
|
|
|
} |
|
|
|
|
|
|
|
pub async fn mock_oracle_annoucement(&mut self) { |
|
|
|
pub async fn mock_oracle_announcement(&mut self) { |
|
|
|
self.oracle() |
|
|
|
.await |
|
|
|
.expect_get_announcement() |
|
|
|