Skip to content

Commit

Permalink
Change assert to exception propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-wei committed Feb 18, 2017
1 parent f5d24f8 commit 11203f7
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -19,6 +19,7 @@

package io.druid.query.groupby;

import com.google.common.base.Throwables;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
Expand All @@ -45,7 +46,6 @@
import io.druid.segment.TestHelper;
import io.druid.segment.incremental.IncrementalIndex;
import io.druid.segment.incremental.OnheapIncrementalIndex;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;

Expand Down Expand Up @@ -105,7 +105,7 @@ public Sequence run(Query query, Map responseContext)
)
);
} catch (Exception e) {
Assert.fail(e.getMessage());
Throwables.propagate(e);
return null;
}
}
Expand Down

0 comments on commit 11203f7

Please sign in to comment.