mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2024-11-19 01:40:55 +01:00
Re-enable mempool api tests (#5560)
* Re-enable mempool api tests * Reduce delay
This commit is contained in:
parent
4f791d71d7
commit
c2b8ae98ee
@ -47,18 +47,18 @@ class FeeRateProviderTest extends BitcoinSAsyncTest {
|
||||
testProvider(provider)
|
||||
}
|
||||
|
||||
it must "get a valid fee rate from mempool.space/testnet using the fastest fee target" ignore {
|
||||
it must "get a valid fee rate from mempool.space/testnet using the fastest fee target" in {
|
||||
val provider = MempoolSpaceProvider(FastestFeeTarget, TestNet3, proxyParams)
|
||||
testProvider(provider)
|
||||
}
|
||||
|
||||
it must "get a valid fee rate from mempool.space/testnet using a half hour fee target" ignore {
|
||||
it must "get a valid fee rate from mempool.space/testnet using a half hour fee target" in {
|
||||
val provider =
|
||||
MempoolSpaceProvider(HalfHourFeeTarget, TestNet3, proxyParams)
|
||||
testProvider(provider)
|
||||
}
|
||||
|
||||
it must "get a valid fee rate from mempool.space/testnet using an hour fee target" ignore {
|
||||
it must "get a valid fee rate from mempool.space/testnet using an hour fee target" in {
|
||||
val provider = MempoolSpaceProvider(HourFeeTarget, TestNet3, proxyParams)
|
||||
testProvider(provider)
|
||||
}
|
||||
@ -82,7 +82,7 @@ class FeeRateProviderTest extends BitcoinSAsyncTest {
|
||||
val provider = MempoolSpaceProvider(FastestFeeTarget, MainNet, proxyParams)
|
||||
for {
|
||||
feeRate <- provider.getFeeRate()
|
||||
_ <- AsyncUtil.nonBlockingSleep(20.seconds)
|
||||
_ <- AsyncUtil.nonBlockingSleep(5.seconds)
|
||||
cached <- provider.getFeeRate()
|
||||
} yield assert(feeRate == cached)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user