Skip to content

Commit d5f8533

Browse files
Catch start mining exceptions at daemon tests start
1 parent e3aec93 commit d5f8533

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

Monero.Test/TestMoneroDaemonRpc.cs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,18 @@ public MoneroDaemonRpcFixture()
3131
BINARY_BLOCK_CTX.txContext.fromGetTxPool = false;
3232
BINARY_BLOCK_CTX.txContext.hasOutputIndices = false;
3333
BINARY_BLOCK_CTX.txContext.fromBinaryBlock = true;
34-
35-
StartMining.Start();
36-
GenUtils.WaitFor(5000);
37-
StopMining.Stop();
38-
GenUtils.WaitFor(5000);
34+
try
35+
{
36+
StartMining.Start();
37+
GenUtils.WaitFor(5000);
38+
StopMining.Stop();
39+
GenUtils.WaitFor(5000);
40+
}
41+
catch
42+
{
43+
44+
}
45+
3946
TestUtils.WALLET_TX_TRACKER.Reset(); // all wallets need to wait for txs to confirm to reliably sync
4047
}
4148

0 commit comments

Comments
 (0)