[bisq-network/bisq] Add API test harness for Linux (#4366)

Stan notifications at github.com
Fri Jul 17 17:52:38 UTC 2020


@ghubstan commented on this pull request.



> +            // Have to generate 1 regtest block for alice's wallet to show 10 BTC balance.
+            bitcoinCli.generateBlocks(1);
+
+            // Give the alicedaemon time to parse the new block.
+            MILLISECONDS.sleep(1500);
+        } catch (InterruptedException ex) {
+            fail(ex.getMessage());
+        }
+    }
+
+    @Test
+    @Order(1)
+    public void testGetBalance() {
+        var balance = grpcStubs.walletsService.getBalance(GetBalanceRequest.newBuilder().build()).getBalance();
+        assertEquals(1000000000, balance);
+    }

It is an important part of the `dao-setup` for regtest/dev mode testing.     Bob & Alice are given a initial BTC & BSQ balances and dummy payment accounts so they can trade without coders / testers having to go through the motions of funding wallets from `bitcoin-cli -regest`, setting up payment account, etc.  Having to do that would make release testing even more time consuming that it already is.  

There are more details [here](https://github.com/bisq-network/bisq/blob/master/docs/dao-setup.md).

Eventually, we want to be able to test creating the DAO setup environment, but I don't think that's in scope for quite awhile.

-- 
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_r456588807
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200717/144e3bcf/attachment.html>


More information about the bisq-github mailing list