Skip to content

Commit

Permalink
[hotfix][tests] Add tests timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
1u0 authored and pnowojski committed Sep 17, 2019
1 parent 15a7f97 commit a7102b7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
import org.apache.parquet.hadoop.ParquetReader;
import org.apache.parquet.hadoop.util.HadoopInputFile;
import org.apache.parquet.io.InputFile;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.Timeout;

import java.io.File;
import java.io.IOException;
Expand All @@ -62,6 +64,9 @@
@SuppressWarnings("serial")
public class ParquetStreamingFileSinkITCase extends AbstractTestBase {

@Rule
public final Timeout timeoutPerTest = Timeout.seconds(20);

@Test
public void testWriteParquetAvroSpecific() throws Exception {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.SequenceFile;
import org.apache.hadoop.io.Text;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.Timeout;

import java.io.File;
import java.io.IOException;
Expand All @@ -59,6 +61,9 @@ public class SequenceStreamingFileSinkITCase extends AbstractTestBase {
new Tuple2<>(3L, "c")
);

@Rule
public final Timeout timeoutPerTest = Timeout.seconds(20);

@Test
public void testWriteSequenceFile() throws Exception {
final File folder = TEMPORARY_FOLDER.newFolder();
Expand Down

0 comments on commit a7102b7

Please sign in to comment.