Skip to content

Commit 7471025

Browse files
authored
Merge pull request #3934 from NationalSecurityAgency/fix_flaky_tests
Fix flaky tests
2 parents c0a1238 + 465d6cc commit 7471025

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

service/src/test/java/skills/intTests/batchUpdateSkills/BatchUpdateSkillsValidationSpec.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ class BatchUpdateSkillsValidationSpec extends DefaultIntSpec {
110110

111111
then:
112112
def ex = thrown(SkillsClientException)
113-
ex.message.contains("All provided skills must belong to the same subject. Skill [${p1skills2[0].skillId}] is not a child of [${p1subj1.subjectId}]")
113+
ex.message.contains("All provided skills must belong to the same subject. Skill [${p1skills2[0].skillId}] is not a child of [${p1subj1.subjectId}]") ||
114+
ex.message.contains("All provided skills must belong to the same subject. Skill [${p1skills1[0].skillId}] is not a child of [${p1subj2.subjectId}]")
114115
}
115116

116117
def "should return error when trying to enable imported skill"() {
-2.49 KB
Binary file not shown.

0 commit comments

Comments
 (0)