a little code cleanup
This commit is contained in:
@@ -98,9 +98,12 @@ public sealed class FileWebSocketTelemetrySinkTests : IDisposable
|
||||
{
|
||||
Token = "token-relative",
|
||||
HostName = "neo-hub.jibo.com",
|
||||
Path = "/listen"
|
||||
Path = "/listen",
|
||||
TurnState =
|
||||
{
|
||||
TransId = "trans-relative"
|
||||
}
|
||||
};
|
||||
session.TurnState.TransId = "trans-relative";
|
||||
|
||||
await sink.RecordConnectionOpenedAsync(envelope, session);
|
||||
await sink.RecordOutboundAsync(envelope, session, [new WebSocketReply { Text = """{"type":"LISTEN"}""" }]);
|
||||
|
||||
@@ -105,8 +105,8 @@ public sealed class LocalWhisperCppBufferedAudioSttStrategyTests
|
||||
|
||||
if (string.Equals(fileName, "ffmpeg", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
var outputPath = arguments.Last();
|
||||
File.WriteAllBytes(outputPath, [0x52, 0x49, 0x46, 0x46]);
|
||||
var outputPath = arguments[^1];
|
||||
File.WriteAllBytes(outputPath, "RIFF"u8);
|
||||
return Task.FromResult(new ExternalProcessResult(0, string.Empty, string.Empty));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user