From ebbed78897402041f353f30782f69fe6dfed83c0 Mon Sep 17 00:00:00 2001 From: David Kocher Date: Mon, 4 Nov 2024 21:16:02 +0100 Subject: [PATCH] Delete test. --- .../ch/cyberduck/core/s3/S3SessionTest.java | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/s3/src/test/java/ch/cyberduck/core/s3/S3SessionTest.java b/s3/src/test/java/ch/cyberduck/core/s3/S3SessionTest.java index 8eb800b93a5..bb4d18d1abc 100644 --- a/s3/src/test/java/ch/cyberduck/core/s3/S3SessionTest.java +++ b/s3/src/test/java/ch/cyberduck/core/s3/S3SessionTest.java @@ -163,30 +163,6 @@ public void testCustomHostnameUnknown() throws Exception { } } - @Test - public void testCustomHostname() throws Exception { - final Host host = new Host(new S3Protocol(), "cyberduck.io", new Credentials( - PROPERTIES.get("s3.key"), "s" - )); - final AtomicBoolean set = new AtomicBoolean(); - final S3Session session = new S3Session(host); - session.withListener(new TranscriptListener() { - @Override - public void log(final Type request, final String message) { - switch(request) { - case request: - if(message.contains("Host:")) { - assertEquals("Host: cyberduck.io", message); - set.set(true); - } - } - } - }); - session.open(new DisabledProxyFinder(), new DisabledHostKeyCallback(), new DisabledLoginCallback(), new DisabledCancelCallback()); - session.login(new DisabledLoginCallback(), new DisabledCancelCallback()); - assertTrue(set.get()); - } - @Test public void testFeatures() { final S3Session aws = new S3Session(new Host(new S3Protocol(), new S3Protocol().getDefaultHostname()));