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

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


The following commit(s) were added to refs/heads/master by this push:
     new 9d90317  Fix broken test
9d90317 is described below

commit 9d90317a683b08ab35e63e952f392714f359f64e
Author: Sebb <s...@apache.org>
AuthorDate: Sun Aug 1 23:12:53 2021 +0100

    Fix broken test
    
    This test never worked (it was not enabled)
    Cannot use equals to compare FTPFile instances
---
 src/test/java/org/apache/commons/net/ftp/FTPSClientTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/net/ftp/FTPSClientTest.java 
b/src/test/java/org/apache/commons/net/ftp/FTPSClientTest.java
index 701f571..05e6f77 100644
--- a/src/test/java/org/apache/commons/net/ftp/FTPSClientTest.java
+++ b/src/test/java/org/apache/commons/net/ftp/FTPSClientTest.java
@@ -308,7 +308,7 @@ public class FTPSClientTest {
             final FTPFile mdtmFile2 = client.mdtmFile(pathname);
             assertNotNull(mdtmFile1);
             assertNotNull(mdtmFile2);
-            assertEquals(mdtmFile1, mdtmFile2);
+            assertEquals(mdtmFile1.toString(), mdtmFile2.toString());
         } finally {
             client.disconnect();
         }

Reply via email to