diff --git a/core/http/endpoints/openai/realtime_semantic_vad_test.go b/core/http/endpoints/openai/realtime_semantic_vad_test.go index c3ea0000e..705ae888b 100644 --- a/core/http/endpoints/openai/realtime_semantic_vad_test.go +++ b/core/http/endpoints/openai/realtime_semantic_vad_test.go @@ -303,7 +303,7 @@ var _ = Describe("liveTurnState", func() { lts.drainEvents(3.4) var got []types.ConversationItemInputAudioTranscriptionSegmentEvent - for _, e := range ftr.events() { + for _, e := range ftr.recordedEvents() { if seg, ok := e.(types.ConversationItemInputAudioTranscriptionSegmentEvent); ok { got = append(got, seg) } @@ -326,7 +326,7 @@ var _ = Describe("liveTurnState", func() { lts.drainEvents(1.0) var got []types.ConversationItemSoundDetectionEvent - for _, e := range ftr.events() { + for _, e := range ftr.recordedEvents() { if sd, ok := e.(types.ConversationItemSoundDetectionEvent); ok { got = append(got, sd) } diff --git a/core/http/endpoints/openai/realtime_transcription_test.go b/core/http/endpoints/openai/realtime_transcription_test.go index e8ab399fd..f7f22803b 100644 --- a/core/http/endpoints/openai/realtime_transcription_test.go +++ b/core/http/endpoints/openai/realtime_transcription_test.go @@ -65,7 +65,7 @@ var _ = Describe("emitTranscription", func() { segmentEvents := func(t *fakeTransport) []types.ConversationItemInputAudioTranscriptionSegmentEvent { var out []types.ConversationItemInputAudioTranscriptionSegmentEvent - for _, e := range t.sent { + for _, e := range t.recordedEvents() { if seg, ok := e.(types.ConversationItemInputAudioTranscriptionSegmentEvent); ok { out = append(out, seg) }