Update commit message

This commit is contained in:
Jacob Dubin
2026-05-06 20:57:32 -05:00
parent ec14e61a81
commit 69707f32a7
4 changed files with 84 additions and 19 deletions

View File

@@ -116,7 +116,7 @@ public sealed class JiboWebSocketServiceTests
Assert.False(session.FollowUpOpen);
Assert.False(session.TurnState.AwaitingTurnCompletion);
Assert.False(session.TurnState.SawListen);
Assert.True(session.TurnState.IgnoreAdditionalAudioUntilUtc > DateTimeOffset.UtcNow.AddSeconds(6));
Assert.True(session.TurnState.IgnoreAdditionalAudioUntilUtc > DateTimeOffset.UtcNow.AddSeconds(3));
var tailListenReplies = await _service.HandleMessageAsync(new WebSocketMessageEnvelope
{
@@ -3225,9 +3225,21 @@ public sealed class JiboWebSocketServiceTests
{
Assert.Equal("proactive_offer_pizza_fact", offerListenPayload.RootElement.GetProperty("data").GetProperty("nlu").GetProperty("intent").GetString());
Assert.Equal("shared/yes_no", offerListenPayload.RootElement.GetProperty("data").GetProperty("nlu").GetProperty("rules")[0].GetString());
Assert.Equal("$YESNO", offerListenPayload.RootElement.GetProperty("data").GetProperty("nlu").GetProperty("rules")[1].GetString());
Assert.Equal("shared/yes_no", offerListenPayload.RootElement.GetProperty("data").GetProperty("match").GetProperty("rule").GetString());
}
using (var offerSkillPayload = JsonDocument.Parse(offerReplies[2].Text!))
{
var jcpConfig = offerSkillPayload.RootElement
.GetProperty("data")
.GetProperty("action")
.GetProperty("config")
.GetProperty("jcp")
.GetProperty("config");
Assert.Equal("Q", jcpConfig.GetProperty("play").GetProperty("meta").GetProperty("prompt_sub_category").GetString());
Assert.Equal("question", jcpConfig.GetProperty("play").GetProperty("meta").GetProperty("mim_type").GetString());
Assert.Equal("LISTEN", jcpConfig.GetProperty("listen").GetProperty("type").GetString());
Assert.Equal("shared/yes_no", jcpConfig.GetProperty("listen").GetProperty("contexts")[0].GetString());
}
var session = _store.FindSessionByToken(token);
Assert.NotNull(session);