Skip to content

Commit c92e699

Browse files
authored
Review fixes for r2dbc-1.0:testing (open-telemetry#17613)
Co-authored-by: otelbot <197425009+otelbot@users.noreply.github.com>
1 parent ec3d575 commit c92e699

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

instrumentation/r2dbc-1.0/testing/src/main/java/io/opentelemetry/instrumentation/r2dbc/v1_0/AbstractR2dbcStatementTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import io.r2dbc.spi.ConnectionFactoryOptions;
4141
import java.time.Duration;
4242
import java.util.HashMap;
43+
import java.util.LinkedHashMap;
4344
import java.util.Map;
4445
import java.util.stream.Stream;
4546
import org.junit.jupiter.api.AfterAll;
@@ -88,7 +89,7 @@ public abstract class AbstractR2dbcStatementTest {
8889
"MYSQL_PASSWORD", PW_DB,
8990
"MYSQL_DATABASE", DB);
9091

91-
private static final Map<String, DbSystemProps> SYSTEMS = new HashMap<>();
92+
private static final Map<String, DbSystemProps> SYSTEMS = new LinkedHashMap<>();
9293

9394
static {
9495
SYSTEMS.put(POSTGRESQL.system, POSTGRESQL);
@@ -134,7 +135,7 @@ void startContainer(DbSystemProps props) {
134135
}
135136
}
136137

137-
@SuppressWarnings("deprecation") // TODO DB_CONNECTION_STRING deprecation
138+
@SuppressWarnings("deprecation") // using deprecated semconv
138139
@ParameterizedTest(name = "{index}: {0}")
139140
@MethodSource("provideParameters")
140141
void testQueries(Parameter parameter) {

0 commit comments

Comments
 (0)