@nsshunt/ststestrunner 1.1.145 → 1.1.146
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ststestrunner.cjs +2 -2
- package/dist/ststestrunner.cjs.map +1 -1
- package/dist/ststestrunner.mjs +2 -2
- package/dist/ststestrunner.mjs.map +1 -1
- package/package.json +1 -1
- package/types/commonTypes.d.ts +1 -0
- package/types/commonTypes.d.ts.map +1 -1
- package/types/libmodule/testCaseFhir02.d.ts +0 -1
- package/types/libmodule/testCaseFhir02.d.ts.map +1 -1
package/dist/ststestrunner.mjs
CHANGED
|
@@ -1444,7 +1444,6 @@ var TestCaseFhir01 = class extends TestCaseFhirQueryBase {
|
|
|
1444
1444
|
//#endregion
|
|
1445
1445
|
//#region src/libmodule/testCaseFhir02.ts
|
|
1446
1446
|
var TestCaseFhir02 = class extends TestCaseFhirQueryBase {
|
|
1447
|
-
blockSize = 2;
|
|
1448
1447
|
bundleBatch;
|
|
1449
1448
|
personRecords = [];
|
|
1450
1449
|
PerformExecuteQuery = async () => {
|
|
@@ -1452,6 +1451,7 @@ var TestCaseFhir02 = class extends TestCaseFhirQueryBase {
|
|
|
1452
1451
|
const client = await this.GetClient();
|
|
1453
1452
|
const __snapshot2 = this._CheckOutputLongDurationError(__snapshot1, "await this.GetClient()");
|
|
1454
1453
|
const prefix = this.runner.options.personPrefix;
|
|
1454
|
+
const bundleSize = this.runner.options.bundleSize;
|
|
1455
1455
|
if (this.runner.iteration === 0) this.bundleBatch = {
|
|
1456
1456
|
"resourceType": "Bundle",
|
|
1457
1457
|
"type": "transaction",
|
|
@@ -1469,7 +1469,7 @@ var TestCaseFhir02 = class extends TestCaseFhirQueryBase {
|
|
|
1469
1469
|
}
|
|
1470
1470
|
});
|
|
1471
1471
|
let retVal = void 0;
|
|
1472
|
-
if (this.runner.iteration %
|
|
1472
|
+
if (this.runner.iteration % bundleSize === bundleSize - 1) {
|
|
1473
1473
|
retVal = await client.ProcessBatchOrTransactionResources(this.bundleBatch);
|
|
1474
1474
|
this._CheckOutputLongDurationError(__snapshot3, "await this.PostResource()");
|
|
1475
1475
|
this.bundleBatch.entry = [];
|