Skip to content

Commit

Permalink
[ML] fix question answering config update test apply (#86489)
Browse files Browse the repository at this point in the history
closes #86487
  • Loading branch information
benwtrent authored May 6, 2022
1 parent c4ce394 commit 339a3c0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,14 @@ QuestionAnsweringConfigUpdate fromMap(Map<String, Object> map) {
return QuestionAnsweringConfigUpdate.fromMap(map);
}

@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/86487")
public void testApply() {
Tokenization tokenizationConfig = randomFrom(
BertTokenizationTests.createRandom(),
MPNetTokenizationTests.createRandom(),
RobertaTokenizationTests.createRandom()
);
QuestionAnsweringConfig originalConfig = new QuestionAnsweringConfig(
randomBoolean() ? null : randomIntBetween(-1, 10),
randomBoolean() ? null : randomIntBetween(0, 10),
randomBoolean() ? null : randomIntBetween(1, 20),
randomBoolean() ? null : VocabularyConfigTests.createRandom(),
tokenizationConfig,
Expand Down

0 comments on commit 339a3c0

Please sign in to comment.