Skip to content

Commit

Permalink
fixup! use startsWith, not contains
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Dec 20, 2024
1 parent a253d89 commit 27d7fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/itest/PresetRulesIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void shouldHavePresetQuarkusRule() throws Exception {
Matchers.equalTo("template=Quarkus,type=PRESET"));
MatcherAssert.assertThat(
json.get("matchExpression").asText(),
Matchers.equalTo("jfrEventTypeIds(target).exists(x, x.contains(\"quarkus\"))"));
Matchers.equalTo("jfrEventTypeIds(target).exists(x, x.startsWith(\"quarkus\"))"));
MatcherAssert.assertThat(json.get("enabled").asBoolean(), Matchers.is(false));
}
}

0 comments on commit 27d7fb8

Please sign in to comment.