Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions test/src/e2e.long/sync2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ describe("sync 2 nodes", function() {

describe("2 nodes", function() {
beforeEach(async function() {
nodeA = new CodeChain();
nodeB = new CodeChain();
// To generate a block this test sends a tx to a node.
// If the tx is propagated before generating a block, tests in this file would fail.
nodeA = new CodeChain({ argv: ["--no-tx-relay"] });
nodeB = new CodeChain({ argv: ["--no-tx-relay"] });

await Promise.all([nodeA.start(), nodeB.start()]);
});
Expand Down
4 changes: 3 additions & 1 deletion test/src/e2e.long/sync3.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ describe("sync 3 nodes", function() {
nodes = [];
for (let i = 0; i < NUM_NODES; i++) {
const node = new CodeChain({
argv: ["--no-discovery"]
// To generate a block this test sends a tx to a node.
// If the tx is propagated before generating a block, tests in this file would fail.
argv: ["--no-discovery", "--no-tx-relay"]
});
nodes.push(node);
}
Expand Down
4 changes: 3 additions & 1 deletion test/src/e2e.long/sync5.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ describe("sync 5 nodes", function() {

nodes = [];
for (let i = 0; i < NUM_NODES; i++) {
// To generate a block this test sends a tx to a node.
// If the tx is propagated before generating a block, tests in this file would fail.
const node = new CodeChain({
argv: ["--no-discovery"]
argv: ["--no-discovery", "--no-tx-relay"]
});
nodes.push(node);
}
Expand Down