diff --git a/apps/dashboard/src/test/java/com/akto/action/TestApiCollectionsAction.java b/apps/dashboard/src/test/java/com/akto/action/TestApiCollectionsAction.java index 2786ed119b..ff189ed24e 100644 --- a/apps/dashboard/src/test/java/com/akto/action/TestApiCollectionsAction.java +++ b/apps/dashboard/src/test/java/com/akto/action/TestApiCollectionsAction.java @@ -173,10 +173,10 @@ public void testTagsForCollections(){ collection5.setId(5); collection5.setHostName("kubernetes-121212-akto.io"); - assertEquals(ApiCollection.ENV_TYPE.STAGING, collection1.getEnvType()); - assertEquals(ApiCollection.ENV_TYPE.STAGING, collection2.getEnvType()); - assertNotEquals(ApiCollection.ENV_TYPE.STAGING, collection3.getEnvType()); - assertEquals(ApiCollection.ENV_TYPE.STAGING, collection4.getEnvType()); - assertEquals(ApiCollection.ENV_TYPE.STAGING, collection5.getEnvType()); + assertEquals(ApiCollection.ENV_TYPE.STAGING.name().toString(), collection1.getEnvType()); + assertEquals(ApiCollection.ENV_TYPE.STAGING.name().toString(), collection2.getEnvType()); + assertNotEquals(ApiCollection.ENV_TYPE.STAGING.name().toString(), collection3.getEnvType()); + assertEquals(ApiCollection.ENV_TYPE.STAGING.name().toString(), collection4.getEnvType()); + assertEquals(ApiCollection.ENV_TYPE.STAGING.name().toString(), collection5.getEnvType()); } }