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

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git

commit 607e32ec1c5c12ddd284dc75d19576a02be2ff1b
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Wed Jul 19 09:22:57 2023 -0400

    Let tests close TFTPClient
---
 src/test/java/org/apache/commons/net/tftp/TFTPServerPathTest.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/test/java/org/apache/commons/net/tftp/TFTPServerPathTest.java 
b/src/test/java/org/apache/commons/net/tftp/TFTPServerPathTest.java
index 649f891e..b957b318 100644
--- a/src/test/java/org/apache/commons/net/tftp/TFTPServerPathTest.java
+++ b/src/test/java/org/apache/commons/net/tftp/TFTPServerPathTest.java
@@ -74,6 +74,7 @@ public class TFTPServerPathTest {
                 // expected path
             }
             file.delete();
+            tftp.close();
         }
     }
 
@@ -114,6 +115,7 @@ public class TFTPServerPathTest {
             // cleanup
             file.delete();
             out.delete();
+            tftp.close();
         }
     }
 
@@ -142,6 +144,7 @@ public class TFTPServerPathTest {
 
             // cleanup
             file.delete();
+            tftp.close();
         }
     }
 

Reply via email to