[bisq-network/bisq] Add API test harness for Linux (#4366)
Stan
notifications at github.com
Fri Jul 17 15:03:42 UTC 2020
@ghubstan commented on this pull request.
> + @Order(1)
+ public void testFundWallet() {
+ long balance = getBalance(); // bisq wallet was initialized with 10 btc
+ assertEquals(1000000000, balance);
+
+ String unusedAddress = getUnusedBtcAddress();
+
+ // Given the default tx fee rate, we want to send 2.5 + the fee,
+ // so the new wallet balance will be exactly 12.5 btc.
+ // We should calculate the fee based on the fee rate and tx size
+ // instead of hard coding the fee amount.
+ double btc = parseDouble("2.5") + parseDouble("0.0000336");
+ bitcoinCli.sendToAddress(unusedAddress, btc);
+
+ bitcoinCli.generateBlocks(1);
+ sleep(1500);
This will become a nuisance, but right now I don't know of another way to give `:daemon` some time to parse new blocks. (The callback does not reach the `:cli`.)
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/4366#discussion_r456499576
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200717/7c0308c2/attachment.html>
More information about the bisq-github
mailing list