Skip to content

Commit

Permalink
test: add logLevel parameter to Fabric AIO ctor calls
Browse files Browse the repository at this point in the history
This is another step taken to win the epic battle that we have been
waging against a particularly nasty test flake that is plaguing the
Fabric tests that use the AIO ledger.

This will make the test output much more verbose, but there's no other
way around to making sure that we can narrow down the root cause of the
flake to a specific issue.

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
  • Loading branch information
petermetz committed Jun 21, 2021
1 parent b2d47d0 commit 183ce86
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export class SupplyChainAppDummyInfrastructure {
publishAllPorts: true,
imageName: "hyperledger/cactus-fabric-all-in-one",
imageVersion: "2021-03-02-ssh-hotfix",
logLevel: level,
});

if (this.options.keychain) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ test(testCase, async (t: Test) => {
imageName: "hyperledger/cactus-fabric2-all-in-one",
imageVersion: "2021-04-20-nodejs",
envVars: new Map([["FABRIC_VERSION", "2.2.0"]]),
logLevel,
});
const tearDown = async () => {
await ledger.stop();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ test(testCase, async (t: Test) => {
imageName: "hyperledger/cactus-fabric2-all-in-one",
imageVersion: "2021-04-20-nodejs",
envVars: new Map([["FABRIC_VERSION", "2.2.0"]]),
logLevel,
});

const tearDown = async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ test(testCase, async (t: Test) => {
imageName: "hyperledger/cactus-fabric2-all-in-one",
imageVersion: "2021-04-20-nodejs",
envVars: new Map([["FABRIC_VERSION", "2.2.0"]]),
logLevel,
});
const tearDown = async () => {
await ledger.stop();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ test(testCase, async (t: Test) => {
imageName: "hyperledger/cactus-fabric2-all-in-one",
imageVersion: "2021-04-20-nodejs",
envVars: new Map([["FABRIC_VERSION", "2.2.0"]]),
logLevel,
});
const tearDown = async () => {
await ledger.stop();
Expand Down

0 comments on commit 183ce86

Please sign in to comment.