Skip to content
This repository was archived by the owner on Dec 3, 2023. It is now read-only.

Commit a965fb9

Browse files
authored
fix: removes flaky intent equivalence assertion (#688)
Because of how intents work in Dialogflow, asserting that the actual name of a resource matches the name of a newly created resource will not always be deterministic, especially if duplicate intents are added. This PR removes the offending assertion. Fixes #623 ☕️
1 parent 84b863c commit a965fb9

File tree

1 file changed

+0
-1
lines changed
  • google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/it

1 file changed

+0
-1
lines changed

google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/it/ITSystemTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,6 @@ public void detectIntentTest() {
282282
assertEquals(EVENT_NAME, result.getQueryText());
283283
assertEquals(ACTION_NAME, result.getAction());
284284
assertEquals(DEFAULT_LANGUAGE_CODE, result.getLanguageCode());
285-
assertEquals(intent.getName(), result.getIntent().getName());
286285
assertEquals(intent.getDisplayName(), result.getIntent().getDisplayName());
287286
}
288287

0 commit comments

Comments
 (0)