Skip to content

Commit 103c2db

Browse files
fix(tests): correct ConnectorStatusDTO instantiation in KafkaConnectNgramFilterTest
1 parent f1c7d7b commit 103c2db

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

api/src/test/java/io/kafbat/ui/service/index/KafkaConnectNgramFilterTest.java

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ protected List<FullConnectorInfoDTO> sortedItems() {
5252
"class",
5353
ConnectorTypeDTO.SINK,
5454
List.of(),
55-
new ConnectorStatusDTO(ConnectorStateDTO.RUNNING, "reason"),
55+
new ConnectorStatusDTO(ConnectorStateDTO.RUNNING, null, "reason"),
5656
1,
5757
0
5858
),
@@ -62,7 +62,7 @@ protected List<FullConnectorInfoDTO> sortedItems() {
6262
"class",
6363
ConnectorTypeDTO.SINK,
6464
List.of(),
65-
new ConnectorStatusDTO(ConnectorStateDTO.RUNNING, "reason"),
65+
new ConnectorStatusDTO(ConnectorStateDTO.RUNNING, null, "reason"),
6666
1,
6767
0
6868
)
@@ -83,20 +83,17 @@ protected List<FullConnectorInfoDTO> sortedResult(List<FullConnectorInfoDTO> ite
8383
"class",
8484
ConnectorTypeDTO.SINK,
8585
List.of(),
86-
new ConnectorStatusDTO(ConnectorStateDTO.RUNNING, "reason"),
86+
new ConnectorStatusDTO(ConnectorStateDTO.RUNNING, null, "reason"),
8787
1,
88-
0
89-
),
88+
0),
9089
new FullConnectorInfoDTO(
9190
"connect-pay",
9291
"connector-pay",
9392
"class",
9493
ConnectorTypeDTO.SINK,
9594
List.of(),
96-
new ConnectorStatusDTO(ConnectorStateDTO.RUNNING, "reason"),
95+
new ConnectorStatusDTO(ConnectorStateDTO.RUNNING, null, "reason"),
9796
1,
98-
0
99-
)
100-
);
97+
0));
10198
}
10299
}

0 commit comments

Comments
 (0)