You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by sa...@apache.org on 2022/05/03 14:58:05 UTC

[incubator-heron] 02/04: [K8s] test hardening.

This is an automated email from the ASF dual-hosted git repository.

saadurrahman pushed a commit to branch saadurrahman/3821-Remove-Deprecated-Volumes-K8s-dev
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git

commit 1aa3289017b598fe1bc10802b557f325f66a9919
Author: Saad Ur Rahman <sa...@apache.org>
AuthorDate: Tue May 3 10:34:23 2022 -0400

    [K8s] test hardening.
    
    Test in <testCreatePersistentVolumeClaims> hardened for size.
---
 .../java/org/apache/heron/scheduler/kubernetes/V1ControllerTest.java     | 1 +
 1 file changed, 1 insertion(+)

diff --git a/heron/schedulers/tests/java/org/apache/heron/scheduler/kubernetes/V1ControllerTest.java b/heron/schedulers/tests/java/org/apache/heron/scheduler/kubernetes/V1ControllerTest.java
index 3e667d81fd6..a039ca980e5 100644
--- a/heron/schedulers/tests/java/org/apache/heron/scheduler/kubernetes/V1ControllerTest.java
+++ b/heron/schedulers/tests/java/org/apache/heron/scheduler/kubernetes/V1ControllerTest.java
@@ -871,6 +871,7 @@ public class V1ControllerTest {
     final List<V1PersistentVolumeClaim> actualClaims =
         v1ControllerWithPodTemplate.createPersistentVolumeClaims(mapPVCOpts);
 
+    Assert.assertEquals("Generated claim sizes match", expectedClaims.size(), actualClaims.size());
     Assert.assertTrue(expectedClaims.containsAll(actualClaims));
   }