Skip to content

Commit

Permalink
remove before annotation
Browse files Browse the repository at this point in the history
Signed-off-by: will-hwang <[email protected]>
  • Loading branch information
will-hwang committed Feb 5, 2025
1 parent 0ec949c commit 65c8add
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ public abstract class AbstractRollingUpgradeTestCase extends BaseNeuralSearchIT
@Override
public void setupSettings() {
super.setupSettings();
setUpModels();
try {
setUpModels();
} catch (Exception e) {
throw new RuntimeException(e);
}
}

@Before
Expand All @@ -44,8 +48,7 @@ protected String getIndexNameForTest() {
return NEURAL_SEARCH_BWC_PREFIX + getTestName().toLowerCase(Locale.ROOT);
}

@SneakyThrows
protected void setUpModels() {
protected void setUpModels() throws Exception {
textEmbeddingModelId = uploadTextEmbeddingModel();
textImageEmbeddingModelId = uploadTextImageEmbeddingModel();
sparseEncodingModelId = uploadSparseEncodingModel();
Expand Down

0 comments on commit 65c8add

Please sign in to comment.