File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
tests/functional/sse-kms-migration Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ const KMS_NODES = helpers.config.kmip.transport.length;
1616const TOTAL_OBJECTS_PER_NODE = Math . floor ( TOTAL_OBJECTS / KMS_NODES ) ;
1717
1818/**
19- * 10 % approximation for the number of packets per IP
19+ * 20 % approximation for the number of packets per IP
2020 * As we might not have an exact match of packets and the
2121 * round robin is confined to each nodejs cluster processes
2222 */
23- const APPROX = Math . floor ( 0.1 * TOTAL_OBJECTS_PER_NODE ) ;
23+ const APPROX = Math . floor ( 0.2 * TOTAL_OBJECTS_PER_NODE ) ;
2424const EXPECTED_MIN = TOTAL_OBJECTS_PER_NODE - APPROX ;
2525const EXPECTED_MAX = TOTAL_OBJECTS_PER_NODE + APPROX ;
2626
@@ -177,7 +177,8 @@ describe(`KMS load (kmip cluster ${KMS_NODES} nodes): ${OBJECT_NUMBER
177177 assert ( repartition . length === KMS_NODES , `Expected ${ KMS_NODES } IPs but got ${ repartition . length } ` ) ;
178178 assert ( repartitionCount . every ( count =>
179179 count >= EXPECTED_MIN && count <= EXPECTED_MAX ) ,
180- `Repartition counts should be around ${ TOTAL_OBJECTS_PER_NODE } but got ${ repartitionCount } ` ) ;
180+ `Repartition counts should be around ${ TOTAL_OBJECTS_PER_NODE } ` +
181+ `(±${ APPROX } , min: ${ EXPECTED_MIN } , max: ${ EXPECTED_MAX } ) but got ${ repartitionCount } ` ) ;
181182 }
182183
183184 it ( `should encrypt ${ TOTAL_OBJECTS } times in parallel, ~${ TOTAL_OBJECTS_PER_NODE } per node` , async ( ) => {
You can’t perform that action at this time.
0 commit comments