Public Access
This commit is contained in:
@@ -843,6 +843,7 @@ public sealed class RecordingCoordinatorTests
|
|||||||
};
|
};
|
||||||
var audioSource = new ControlledAudioSource();
|
var audioSource = new ControlledAudioSource();
|
||||||
var summaryPipeline = new CapturingMeetingSummaryPipeline();
|
var summaryPipeline = new CapturingMeetingSummaryPipeline();
|
||||||
|
var metadataProvider = new BlockingMeetingMetadataProvider(new MeetingMetadata("", [], ""));
|
||||||
var coordinator = new MeetingRecordingCoordinator(
|
var coordinator = new MeetingRecordingCoordinator(
|
||||||
audioSource,
|
audioSource,
|
||||||
new TestSpeechRecognitionPipelineFactory(new EchoStreamingTranscriptionProvider()),
|
new TestSpeechRecognitionPipelineFactory(new EchoStreamingTranscriptionProvider()),
|
||||||
@@ -853,12 +854,14 @@ public sealed class RecordingCoordinatorTests
|
|||||||
new InMemoryRecordedAudioStore(),
|
new InMemoryRecordedAudioStore(),
|
||||||
summaryPipeline,
|
summaryPipeline,
|
||||||
Options.Create(options),
|
Options.Create(options),
|
||||||
NullLogger<MeetingRecordingCoordinator>.Instance);
|
NullLogger<MeetingRecordingCoordinator>.Instance,
|
||||||
|
meetingMetadataProvider: metadataProvider);
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
var started = await coordinator.StartAsync(CancellationToken.None);
|
var started = await coordinator.StartAsync(CancellationToken.None);
|
||||||
await audioSource.WriteAsync(new AudioChunk([1, 0], 16000, 1), CancellationToken.None);
|
await audioSource.WriteAsync(new AudioChunk([1, 0], 16000, 1), CancellationToken.None);
|
||||||
await WaitUntilAsync(() =>
|
await WaitUntilAsync(() => File.Exists(started.AssistantContextPath!));
|
||||||
FileContainsText(started.AssistantContextPath!, "state: transcribing"));
|
|
||||||
var attachmentPath = Path.Combine(
|
var attachmentPath = Path.Combine(
|
||||||
Path.GetDirectoryName(started.AssistantContextPath!)!,
|
Path.GetDirectoryName(started.AssistantContextPath!)!,
|
||||||
"Attachments",
|
"Attachments",
|
||||||
@@ -885,6 +888,11 @@ public sealed class RecordingCoordinatorTests
|
|||||||
await Task.Delay(250);
|
await Task.Delay(250);
|
||||||
Assert.False(File.Exists(started.AssistantContextPath));
|
Assert.False(File.Exists(started.AssistantContextPath));
|
||||||
}
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
metadataProvider.Release();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task AbortDoesNothingWhenRecordingIsIdle()
|
public async Task AbortDoesNothingWhenRecordingIsIdle()
|
||||||
|
|||||||
Reference in New Issue
Block a user