Skip to content

Commit 68bb25e

Browse files
Move static block to class level in cosmos-encryption TestSuiteBase (#47216)
* Initial plan * Move CosmosNettyLeakDetectorFactory.ingestIntoNetty() to class-level static block Co-authored-by: FabianMeiswinkel <19165014+FabianMeiswinkel@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: FabianMeiswinkel <19165014+FabianMeiswinkel@users.noreply.github.com>
1 parent 639b41e commit 68bb25e

File tree

1 file changed

+1
-5
lines changed
  • sdk/cosmos/azure-cosmos-encryption/src/test/java/com/azure/cosmos/encryption

1 file changed

+1
-5
lines changed

sdk/cosmos/azure-cosmos-encryption/src/test/java/com/azure/cosmos/encryption/TestSuiteBase.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ protected static CosmosAsyncContainer getSharedSinglePartitionCosmosContainer(Co
170170
}
171171

172172
static {
173+
CosmosNettyLeakDetectorFactory.ingestIntoNetty();
173174
accountConsistency = parseConsistency(TestConfigurations.CONSISTENCY);
174175
desiredConsistencies = immutableListOrNull(
175176
ObjectUtils.defaultIfNull(parseDesiredConsistencies(TestConfigurations.DESIRED_CONSISTENCIES),
@@ -1482,9 +1483,4 @@ protected static void validateResponse(EncryptionPojo originalItem, EncryptionPo
14821483
assertThat(result.getSensitiveChildPojo2DArray()[0][0].getSensitiveStringArray()).isEqualTo(originalItem.getSensitiveChildPojo2DArray()[0][0].getSensitiveStringArray());
14831484
assertThat(result.getSensitiveChildPojo2DArray()[0][0].getSensitiveString3DArray()).isEqualTo(originalItem.getSensitiveChildPojo2DArray()[0][0].getSensitiveString3DArray());
14841485
}
1485-
1486-
1487-
static {
1488-
CosmosNettyLeakDetectorFactory.ingestIntoNetty();
1489-
}
14901486
}

0 commit comments

Comments
 (0)