From 58b4d9ed08ec6a3bd8d1d5d2a94c971f43314ff6 Mon Sep 17 00:00:00 2001 From: Lee Parrish <30470292+LeeParrishMSFT@users.noreply.github.com> Date: Tue, 30 Mar 2021 13:47:23 -0500 Subject: [PATCH] add delay to unit test --- .../com/microsoft/bot/builder/TranscriptMiddlewareTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/bot-builder/src/test/java/com/microsoft/bot/builder/TranscriptMiddlewareTest.java b/libraries/bot-builder/src/test/java/com/microsoft/bot/builder/TranscriptMiddlewareTest.java index be530436d..4fbd98a13 100644 --- a/libraries/bot-builder/src/test/java/com/microsoft/bot/builder/TranscriptMiddlewareTest.java +++ b/libraries/bot-builder/src/test/java/com/microsoft/bot/builder/TranscriptMiddlewareTest.java @@ -65,9 +65,9 @@ public final void Transcript_LogActivities() { context.sendActivity("echo:" + context.getActivity().getText()).join(); return CompletableFuture.completedFuture(null); } - ).send("foo").assertReply( + ).send("foo").delay(50).assertReply( (activity) -> Assert.assertEquals(activity.getType(), ActivityTypes.TYPING) - ).assertReply("echo:foo").send("bar").assertReply( + ).assertReply("echo:foo").send("bar").delay(50).assertReply( (activity) -> Assert.assertEquals(activity.getType(), ActivityTypes.TYPING) ).assertReply("echo:bar").startTest().join();