Skip to content

Commit fe1a98d

Browse files
committed
feat: add test compress
Signed-off-by: kaixuan xu <[email protected]>
1 parent a537479 commit fe1a98d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

opengemini-client/src/test/java/io/opengemini/client/impl/OpenGeminiClientTest.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
1716
package io.opengemini.client.impl;
1817

1918
import io.github.openfacade.http.HttpClientConfig;
@@ -54,6 +53,7 @@
5453

5554
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
5655
class OpenGeminiClientTest extends TestBase {
56+
5757
private final List<OpenGeminiClient> clients = new ArrayList<>();
5858

5959
protected List<OpenGeminiClient> clientList() throws OpenGeminiException {
@@ -69,19 +69,19 @@ protected List<OpenGeminiClient> clientList() throws OpenGeminiException {
6969
.connectTimeout(Duration.ofSeconds(3))
7070
.timeout(Duration.ofSeconds(3))
7171
.build();
72-
Configuration configuration =
73-
Configuration.builder()
74-
.addresses(Collections.singletonList(new Address("127.0.0.1", 8086)))
75-
.httpConfig(httpConfig)
76-
.gzipEnabled(false)
77-
.build();
72+
Configuration configuration
73+
= Configuration.builder()
74+
.addresses(Collections.singletonList(new Address("127.0.0.1", 8086)))
75+
.httpConfig(httpConfig)
76+
.gzipEnabled(false)
77+
.build();
7878
clients.add(OpenGeminiClientFactory.create(configuration));
7979
}
8080
List<CompressMethod> compressMethods = Arrays.asList(CompressMethod.SNAPPY, CompressMethod.GZIP,
8181
CompressMethod.ZSTD);
8282
for (CompressMethod compressMethod : compressMethods) {
8383
HttpClientConfig httpConfig = new HttpClientConfig.Builder()
84-
.engine(HttpClientEngine.AsyncHttpClient)
84+
.engine(HttpClientEngine.Async)
8585
.connectTimeout(Duration.ofSeconds(3))
8686
.timeout(Duration.ofSeconds(3))
8787
.build();

0 commit comments

Comments
 (0)