Skip to content

Commit c406425

Browse files
committed
remove extra containers
1 parent f5b6a2e commit c406425

File tree

3 files changed

+3
-63
lines changed

3 files changed

+3
-63
lines changed

tests/api/setup.ts

Lines changed: 1 addition & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -21,63 +21,7 @@ function defaultContainers(): ContainerConfig[] {
2121
volumes: ['tests/api/event-replay/.tmp/local/:/root/'],
2222
};
2323

24-
const bitcoind: ContainerConfig = {
25-
image: 'blockstack/bitcoind:v0.20.99.0',
26-
name: `stacks-api-test-bitcoind`,
27-
ports: [
28-
{ host: 18443, container: 18443 },
29-
{ host: 18444, container: 18444 },
30-
],
31-
waitPort: 18443,
32-
command: [
33-
'/usr/local/bin/bitcoind',
34-
'-printtoconsole',
35-
'-regtest=1',
36-
'-txindex=1',
37-
'-rpcallowip=0.0.0.0/0',
38-
'-rpcbind=0.0.0.0',
39-
'-rpcuser=btc',
40-
'-rpcpassword=btc',
41-
],
42-
};
43-
44-
const bitcoindFillFaucet: ContainerConfig = {
45-
image: 'byrnedo/alpine-curl',
46-
name: `stacks-api-test-bitcoind-fill-faucet`,
47-
ports: [],
48-
waitForReady: false,
49-
restartPolicy: 'on-failure',
50-
command: [
51-
'-f',
52-
'-u',
53-
'btc:btc',
54-
'--data-binary',
55-
'{"jsonrpc": "1.0", "id":"c", "method": "generatetoaddress", "params": [110, "mrzLDS7LT3otAnpiRWGYkWipdnAZJaXAZQ"] }',
56-
'-H',
57-
'content-type: text/plain;',
58-
'http://host.docker.internal:18443/',
59-
],
60-
extraHosts: ['host.docker.internal:host-gateway'],
61-
};
62-
63-
const stacksBlockchain: ContainerConfig = {
64-
image: 'hirosystems/stacks-api-e2e:stacks3.0-0a2c0e2',
65-
name: `stacks-api-test-stacks-blockchain`,
66-
ports: [
67-
{ host: 20443, container: 20443 },
68-
{ host: 20444, container: 20444 },
69-
],
70-
waitPort: 20443,
71-
env: [
72-
'STACKS_EVENT_OBSERVER=host.docker.internal:3700',
73-
'BLOCKSTACK_USE_TEST_GENESIS_CHAINSTATE=1',
74-
'NOP_BLOCKSTACK_DEBUG=1',
75-
],
76-
extraHosts: ['host.docker.internal:host-gateway'],
77-
restartPolicy: 'on-failure',
78-
};
79-
80-
return [postgres, bitcoind, bitcoindFillFaucet, stacksBlockchain];
24+
return [postgres];
8125
}
8226

8327
export async function globalSetup() {

tests/krypton/setup.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@ export async function globalSetup() {
4848
export async function globalTeardown() {
4949
const containers = kryptonContainers();
5050
for (const config of [...containers].reverse()) {
51-
try {
52-
process.stdout.write(`\n[testenv:krypton] logs for ${config.name}\n`);
53-
await runLogs(config, ['--once']); // tail last logs
54-
} catch (error) {
55-
process.stdout.write(`[testenv:krypton] could not read logs for ${config.name}: ${error}\n`);
56-
}
5751
await runDown(config);
5852
}
5953
process.stdout.write(`[testenv:krypton] all containers removed\n`);

tests/snp/setup.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ function snpContainers(): ContainerConfig[] {
1919
image: 'redis:7',
2020
name: `stacks-api-test-snp-redis`,
2121
ports: [{ host: 6379, container: 6379 }],
22+
waitPort: 6379,
2223
};
2324

2425
const snp: ContainerConfig = {
@@ -35,6 +36,7 @@ function snpContainers(): ContainerConfig[] {
3536
'PGPASSWORD=postgres',
3637
'PGDATABASE=postgres',
3738
],
39+
waitPort: 3022,
3840
extraHosts: ['host.docker.internal:host-gateway'],
3941
};
4042

0 commit comments

Comments
 (0)