APEXMALHAR-2491 Changes to shutdown the controller after completion of waittime in GenericFileOutputOperatorTest
diff --git a/library/src/test/java/org/apache/apex/malhar/lib/fs/GenericFileOutputOperatorTest.java b/library/src/test/java/org/apache/apex/malhar/lib/fs/GenericFileOutputOperatorTest.java
index f248266..6bbbd3a 100644
--- a/library/src/test/java/org/apache/apex/malhar/lib/fs/GenericFileOutputOperatorTest.java
+++ b/library/src/test/java/org/apache/apex/malhar/lib/fs/GenericFileOutputOperatorTest.java
@@ -166,6 +166,7 @@
     for (int i = 0; i < MAX && (!outputFile.exists()); ++i) {
       Thread.sleep(1000);
     }
+    lc.shutdown();
     if (!outputFile.exists()) {
       String msg = String.format("Error: output file not found after %d seconds%n", MAX);
       throw new RuntimeException(msg);