You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/case-core/src/core/ReadingCaseContract.ts
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,6 @@ export class ReadingCaseContract extends BaseCaseContract {
51
51
}: ReaderDependencies,
52
52
config: CaseConfig,
53
53
parentVersions: string[],
54
-
mutex: Mutex,
55
54
){
56
55
super(
57
56
contractFile.description,
@@ -65,7 +64,7 @@ export class ReadingCaseContract extends BaseCaseContract {
65
64
this.makeBrokerService=makeBrokerService;
66
65
this.links=contractFile;
67
66
this.status='UNKNOWN';
68
-
this.mutex=mutex;
67
+
this.mutex=newMutex();
69
68
}
70
69
71
70
/**
@@ -83,15 +82,18 @@ export class ReadingCaseContract extends BaseCaseContract {
83
82
runTestCb: RunTestCallback,
84
83
): Promise<void>|undefined{
85
84
this.initialContext.logger.maintainerDebug(
86
-
`Verifying contract between '${this.currentContract.description.consumerName}' and '${this.currentContract.description.providerName}'. There are '${this.currentContract.examples.length}' examples`,
`Attempting to verify an interaction which was '${example.result}'. This should never happen in normal operation, and might be the result of a corrupted ContractCase file, a file that was not written by ContractCase, or a bug.`,
96
+
`Attempting to verify an interaction which didn't pass the consumer test ('${example.result}'). This should never happen in normal operation, and might be the result of a corrupted ContractCase file, a file that was not written by ContractCase, or a bug.`,
0 commit comments