Skip to content

Commit

Permalink
CR comments incorporated
Browse files Browse the repository at this point in the history
  • Loading branch information
abhimanyugupta07 committed Sep 17, 2020
1 parent e51178f commit 816eeff
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions drone-fly-integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<groupId>com.expediagroup</groupId>
<artifactId>drone-fly-app</artifactId>
<version>${project.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>com.tdunning</groupId>
Expand Down Expand Up @@ -42,6 +43,7 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
Expand All @@ -52,6 +54,7 @@
<dependency>
<groupId>org.springframework.kafka</groupId>
<artifactId>spring-kafka</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.kafka</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public class DroneFlyIntegrationTest {

private @Mock HMSHandler hmsHandler;

protected final ExecutorService executorService = Executors.newFixedThreadPool(1);
private final ExecutorService executorService = Executors.newFixedThreadPool(1);
private static Configuration CONF = new Configuration();

private KafkaMetaStoreEventListener kafkaMetaStoreEventListener;
Expand All @@ -109,7 +109,7 @@ void setUp() throws InterruptedException {
initKafkaListener();

executorService.execute(() -> DroneFly.main(new String[] {}));
await().atMost(Duration.TEN_MINUTES).until(DroneFly::isRunning);
await().atMost(Duration.FIVE_MINUTES).until(DroneFly::isRunning);
}

@AfterEach
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ public class DroneFlyIntegrationTestUtils {
static final String TABLE = "table";

public static Table buildTable() {
return buildTable(null);
return buildTable(TABLE);
}

public static Table buildTable(String tableName) {
List<FieldSchema> partitions = Lists.newArrayList();
partitions.add(new FieldSchema("a", "string", "comment"));
partitions.add(new FieldSchema("b", "string", "comment"));
partitions.add(new FieldSchema("c", "string", "comment"));
return new Table(tableName == null ? TABLE : tableName, DATABASE, "me", 1, 1, 1, new StorageDescriptor(),
partitions, buildTableParameters(), "originalText", "expandedText", "tableType");
return new Table(tableName, DATABASE, "me", 1, 1, 1, new StorageDescriptor(), partitions, buildTableParameters(),
"originalText", "expandedText", "tableType");
}

public static Partition buildPartition() {
Expand Down

0 comments on commit 816eeff

Please sign in to comment.