Skip to content
This repository was archived by the owner on Mar 23, 2021. It is now read-only.

Commit 07c4167

Browse files
Remove seed from e2e tests
With the recent change to move to a data directory, we no longer use this seed. It seems like we never needed it because the tests also pass without explicitely controlling the seed.
1 parent 9201a40 commit 07c4167

File tree

2 files changed

+3
-25
lines changed

2 files changed

+3
-25
lines changed

api_tests/lib/config.ts

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,15 @@ export interface HttpApi {
1414
}
1515

1616
export class E2ETestActorConfig {
17-
public readonly seed: Uint8Array;
1817
public readonly data: string;
1918

2019
constructor(
2120
public readonly httpApiPort: number,
2221
public readonly comitPort: number,
23-
seed: string,
2422
public readonly name: string
2523
) {
2624
this.httpApiPort = httpApiPort;
2725
this.comitPort = comitPort;
28-
this.seed = new Uint8Array(Buffer.from(seed, "hex"));
2926

3027
const tmpobj = tmp.dirSync();
3128
tmpobj.removeCallback(); // Manual cleanup
@@ -66,24 +63,9 @@ interface BitcoinConnector {
6663
network: string;
6764
}
6865

69-
export const ALICE_CONFIG = new E2ETestActorConfig(
70-
8000,
71-
9938,
72-
"f87165e305b0f7c4824d3806434f9d0909610a25641ab8773cf92a48c9d77670",
73-
"alice"
74-
);
75-
export const BOB_CONFIG = new E2ETestActorConfig(
76-
8010,
77-
9939,
78-
"1a1707bb54e5fb4deddd19f07adcb4f1e022ca7879e3c8348da8d4fa496ae8e2",
79-
"bob"
80-
);
81-
export const CHARLIE_CONFIG = new E2ETestActorConfig(
82-
8020,
83-
8021,
84-
"6b49ec1df23d124a16d6a12bd34476579e6e80cdcb97a5438cb76ac5c423c937",
85-
"charlie"
86-
);
66+
export const ALICE_CONFIG = new E2ETestActorConfig(8000, 9938, "alice");
67+
export const BOB_CONFIG = new E2ETestActorConfig(8010, 9939, "bob");
68+
export const CHARLIE_CONFIG = new E2ETestActorConfig(8020, 8021, "charlie");
8769

8870
function createLedgerConnectors(ledgerConfig: LedgerConfig): LedgerConnectors {
8971
const config: LedgerConnectors = {};

api_tests/lib_sdk/actors/actor.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { expect } from "chai";
22
import { Cnd, ComitClient, Swap } from "comit-sdk";
3-
import { randomBytes } from "crypto";
43
import { BigNumber, BigNumberish, parseEther } from "ethers/utils";
54
import getPort from "get-port";
65
import { Logger } from "log4js";
@@ -27,12 +26,9 @@ export class Actor {
2726
projectRoot: string,
2827
logRoot: string
2928
) {
30-
const seed = randomBytes(32).toString("hex");
31-
3229
const actorConfig = new E2ETestActorConfig(
3330
await getPort(),
3431
await getPort(),
35-
seed,
3632
name
3733
);
3834

0 commit comments

Comments
 (0)