From 3abe1d2ea6c2bc331f1b81f5b3b245f942f22c01 Mon Sep 17 00:00:00 2001 From: titusfortner Date: Wed, 4 Oct 2023 19:50:40 -0500 Subject: [PATCH] fix tests --- .../selenium/chrome/ChromeOptionsTest.java | 6 ++-- .../selenium/remote/http/netty/BUILD.bazel | 15 ---------- .../http/netty/NettyDomainSocketTest.java | 29 ------------------- 3 files changed, 3 insertions(+), 47 deletions(-) delete mode 100644 java/test/org/openqa/selenium/remote/http/netty/BUILD.bazel delete mode 100644 java/test/org/openqa/selenium/remote/http/netty/NettyDomainSocketTest.java diff --git a/java/test/org/openqa/selenium/chrome/ChromeOptionsTest.java b/java/test/org/openqa/selenium/chrome/ChromeOptionsTest.java index 39e0d58ae9562d..c02881213494c5 100644 --- a/java/test/org/openqa/selenium/chrome/ChromeOptionsTest.java +++ b/java/test/org/openqa/selenium/chrome/ChromeOptionsTest.java @@ -147,7 +147,7 @@ void mergingOptionsMergesArguments() { .asInstanceOf(MAP) .extractingByKey("args") .asInstanceOf(LIST) - .containsExactly("--remote-allow-origins=*", "verbose", "silent"); + .containsExactly("verbose", "silent"); } @Test @@ -263,7 +263,7 @@ void mergingOptionsWithMutableCapabilities() { .asInstanceOf(MAP) .extractingByKey("args") .asInstanceOf(LIST) - .containsExactly("--remote-allow-origins=*", "verbose", "silent"); + .containsExactly("verbose", "silent"); assertThat(map) .asInstanceOf(MAP) @@ -328,7 +328,7 @@ void mergingOptionsWithOptionsAsMutableCapabilities() { .asInstanceOf(MAP) .extractingByKey("args") .asInstanceOf(LIST) - .containsExactly("--remote-allow-origins=*", "verbose", "silent"); + .containsExactly("verbose", "silent"); assertThat(map).asInstanceOf(MAP).containsEntry("opt1", "val1"); diff --git a/java/test/org/openqa/selenium/remote/http/netty/BUILD.bazel b/java/test/org/openqa/selenium/remote/http/netty/BUILD.bazel deleted file mode 100644 index 3ac9dd14b4a720..00000000000000 --- a/java/test/org/openqa/selenium/remote/http/netty/BUILD.bazel +++ /dev/null @@ -1,15 +0,0 @@ -load("@rules_jvm_external//:defs.bzl", "artifact") -load("//java:defs.bzl", "JUNIT5_DEPS", "java_test_suite") - -java_test_suite( - name = "medium-tests", - size = "medium", - srcs = glob(["*.java"]), - deps = [ - "//java/src/org/openqa/selenium/remote/http", - "//java/src/org/openqa/selenium/remote/http/jdk", - "//java/test/org/openqa/selenium/remote/internal:test-lib", - "//java/test/org/openqa/selenium/testing:annotations", - artifact("org.junit.jupiter:junit-jupiter-api"), - ] + JUNIT5_DEPS, -) diff --git a/java/test/org/openqa/selenium/remote/http/netty/NettyDomainSocketTest.java b/java/test/org/openqa/selenium/remote/http/netty/NettyDomainSocketTest.java deleted file mode 100644 index dc29d6e27ffb29..00000000000000 --- a/java/test/org/openqa/selenium/remote/http/netty/NettyDomainSocketTest.java +++ /dev/null @@ -1,29 +0,0 @@ -// Licensed to the Software Freedom Conservancy (SFC) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The SFC licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - -package org.openqa.selenium.remote.http.netty; - -import org.openqa.selenium.remote.http.HttpClient; -import org.openqa.selenium.remote.internal.DomainSocketsTestBase; - -class NettyDomainSocketTest extends DomainSocketsTestBase { - - @Override - protected HttpClient.Factory createFactory() { - return new NettyClient.Factory(); - } -}