Skip to content

Commit

Permalink
fix for tests of dummy parallelism
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed May 9, 2022
1 parent 79766c8 commit 869270d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,6 @@ public void test021DiscoverConfiguration() throws Exception {

assertSteadyResource(resource);
dummyResource.assertConnections(2);
assertDummyConnectorInstances(1);
}

private String getSuggestionForProperty(PrismObject<ResourceType> resource, String propertyName) {
Expand Down Expand Up @@ -561,8 +560,6 @@ public void test022Configuration() throws Exception {
Task task = getTestTask();
OperationResult result = createOperationResult();

rememberResourceCacheStats();

when();
resource = provisioningService.getObject(ResourceType.class, RESOURCE_DUMMY_OID, null, task, result);
resourceBean = resource.asObjectable();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ public void test800ParallelReadAndModifyResource() throws Exception {
OperationResult result = task.getResult();

// Previous test will max out the connector pool
dummyResource.assertConnections(10);
dummyResource.assertConnections(11);
assertDummyConnectorInstances(10);

dummyResource.setOperationDelayOffset(0);
Expand Down Expand Up @@ -826,7 +826,8 @@ public void test800ParallelReadAndModifyResource() throws Exception {

displayValue("Dummy resource connections", dummyResource.getConnectionCount());

assertDummyConnectorInstances(dummyResource.getConnectionCount());
//-1 because of connection for tests that use resource without oid
assertDummyConnectorInstances(dummyResource.getConnectionCount() - 1);
}

private Object doResourceOperation(Task task, OperationResult result) throws Exception {
Expand Down

0 comments on commit 869270d

Please sign in to comment.