Skip to content

Commit

Permalink
sleep 1.5 seconds before returning in stop function
Browse files Browse the repository at this point in the history
Signed-off-by: onur-ozkan <[email protected]>
  • Loading branch information
onur-ozkan committed Aug 12, 2024
1 parent 3d0c05e commit 6c55382
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mm2src/mm2_main/src/lp_native_dex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ async fn kick_start(ctx: MmArc) -> MmInitResult<()> {
fn get_p2p_key(ctx: &MmArc) -> P2PResult<[u8; 32]> {
// When running tests, avoid using the same P2P address derived from the passphrase
// as it may cause conflicts when running tests in parallel.
if cfg!(not(test)) && cfg!(not(feature = "run-docker-tests")) {
if true { // cfg!(not(test)) && cfg!(not(feature = "run-docker-tests")) {
if let Ok(crypto_ctx) = CryptoCtx::from_ctx(ctx) {
let key = sha256(crypto_ctx.mm2_internal_privkey_slice());
return Ok(key.take());
Expand Down
3 changes: 3 additions & 0 deletions mm2src/mm2_test_helpers/src/for_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1553,6 +1553,9 @@ impl MarketMakerIt {
if status != StatusCode::OK {
return ERR!("MM didn't accept a stop. body: {}", body);
}

Timer::sleep(1.5).await;

Ok(())
}

Expand Down

0 comments on commit 6c55382

Please sign in to comment.