Skip to content

Commit 56bec0d

Browse files
committed
fixed build issues
1 parent 34367fe commit 56bec0d

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

kcbq-connector/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@
4242
</properties>
4343

4444
<dependencies>
45-
<dependency>
46-
<groupId>org.awaitility</groupId>
47-
<artifactId>awaitility</artifactId>
48-
<scope>test</scope>
49-
</dependency>
5045
<dependency>
5146
<groupId>org.apache.kafka</groupId>
5247
<artifactId>connect-api</artifactId>

kcbq-connector/src/test/java/com/wepay/kafka/connect/bigquery/BigQuerySinkTaskTest.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
package com.wepay.kafka.connect.bigquery;
2525

26-
import static org.awaitility.Awaitility.await;
2726
import static org.junit.jupiter.api.Assertions.assertEquals;
2827
import static org.junit.jupiter.api.Assertions.assertNotNull;
2928
import static org.junit.jupiter.api.Assertions.assertThrows;
@@ -58,7 +57,6 @@
5857
import com.wepay.kafka.connect.bigquery.write.storage.StorageApiBatchModeHandler;
5958
import com.wepay.kafka.connect.bigquery.write.storage.StorageWriteApiDefaultStream;
6059
import java.net.SocketTimeoutException;
61-
import java.time.Duration;
6260
import java.util.Arrays;
6361
import java.util.Collections;
6462
import java.util.HashMap;
@@ -1123,11 +1121,10 @@ public void testStop() {
11231121
testTask.initialize(sinkTaskContext);
11241122
testTask.start(properties);
11251123
testTask.put(Collections.singletonList(spoofSinkRecord(topic)));
1126-
await().atMost(Duration.ofSeconds(5)).untilAsserted( () -> assertEquals(1, testTask.getTaskThreadsActiveCount()));
1127-
// assertEquals(1, testTask.getTaskThreadsActiveCount());
1124+
1125+
assertEquals(1, testTask.getTaskThreadsActiveCount());
11281126
testTask.stop();
1129-
await().atMost(Duration.ofSeconds(5)).untilAsserted( () -> assertEquals(0, testTask.getTaskThreadsActiveCount()));
1130-
// assertEquals(0, testTask.getTaskThreadsActiveCount());
1127+
assertEquals(0, testTask.getTaskThreadsActiveCount());
11311128
verify(bigQuery, times(1)).insertAll(any(InsertAllRequest.class));
11321129

11331130
assertThrows(

pom.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262

6363
<main.dir>${project.basedir}</main.dir>
6464
<skip.unit.tests>${maven.test.skip}</skip.unit.tests>
65-
<awaitility.version>4.2.1</awaitility.version>
6665
</properties>
6766

6867
<name>kafka-connect-bigquery-parent</name>
@@ -125,12 +124,6 @@
125124

126125
<dependencyManagement>
127126
<dependencies>
128-
<dependency>
129-
<groupId>org.awaitility</groupId>
130-
<artifactId>awaitility</artifactId>
131-
<version>${awaitility.version}</version>
132-
<scope>test</scope>
133-
</dependency>
134127
<dependency>
135128
<groupId>com.google.cloud</groupId>
136129
<artifactId>libraries-bom</artifactId>

0 commit comments

Comments
 (0)