-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(supply-chain-app-backend): fix via-npm-script.test.ts hanging
1. The test case was hanging at the end because it was waiting for a magic string to appear in the logs to indicate that the booting has finished. 2. The problems began when we changed the supply chain app's log message from mentioning Cactus to Cacti which then invalidated the condition forever. 3. This left it hanging indefinitely and the test case was broken. 4. Now to fix the problem and avoid this happening again in the future the supply chain app exports the log message pattern as a variable and the test case imports that directly so if we change the log message in the future it will automatically make sure that the test is also waiting for the updated log message pattern to show up in the logs making this class of bugs impossible to happen. 5. Also sneaking in a hot-fix for a missing test coverage environment variable for the test package of the manual consortium plugin which was uncovered by this pull request's execution by chance. Signed-off-by: Peter Somogyvari <[email protected]>
- Loading branch information
Showing
4 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
examples/cactus-example-supply-chain-backend/src/main/typescript/public-api.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export { SUPPLY_CHAIN_APP_OK_LOG_MSG_PATTERN } from "./supply-chain-app"; | ||
export { SupplyChainApp } from "./supply-chain-app"; | ||
export { ISupplyChainAppOptions } from "./supply-chain-app"; | ||
export { launchApp } from "./supply-chain-app-cli"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters