Skip to content

Commit

Permalink
Fixing docker-compose for bitcoin rpc commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Micah Riggan committed Jan 18, 2019
1 parent 3887304 commit 3b66664
Show file tree
Hide file tree
Showing 6 changed files with 114 additions and 2,059 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ services:
command:
-printtoconsole
-regtest=1
-txindex=1
-txindex=0
-listen=1
-server=1
-irc=0
-dnsseed=1
-dnsseed=0
-upnp=0
-port=8332
-rpcport=8333
Expand Down
26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions packages/bitcore-node/test/helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { WalletAddressStorage } from '../../src/models/walletAddress';
import { WalletStorage } from '../../src/models/wallet';
import { Storage } from '../../src/services/storage';
import { BaseModel } from '../../src/models/base';
import { RateLimitStorage } from "../../src/models/rateLimit";
import { EventStorage } from "../../src/models/events";

export async function resetDatabase() {
await resetModel(BlockStorage);
Expand All @@ -15,6 +17,8 @@ export async function resetDatabase() {
await resetModel(WalletAddressStorage);
await resetModel(WalletStorage);
await resetModel(StateStorage);
await resetModel(RateLimitStorage);
await resetModel(EventStorage);
}

export async function resetModel(model: BaseModel<any>) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ describe('Websockets', () => {
await resetDatabase();
});

it.only('should get a new block when one is generated', async () => {
it('should get a new block when one is generated', async () => {
const p2pWorker = new P2pWorker({
chain,
network,
chainConfig
});

await rpc.generate(1);
await p2pWorker.start();
await p2pWorker.sync();
await rpc.generate(1);
Expand All @@ -51,7 +52,7 @@ describe('Websockets', () => {
await p2pWorker.stop();
});

it.only('should get a websocket event when a block is added', async () => {
it('should get a websocket event when a block is added', async () => {
await Event.start();
await Api.start();

Expand All @@ -61,6 +62,7 @@ describe('Websockets', () => {
chainConfig
});

await rpc.generate(1);
await p2pWorker.start();
await p2pWorker.sync();
await rpc.generate(1);
Expand Down
Loading

0 comments on commit 3b66664

Please sign in to comment.