Skip to content

Commit

Permalink
Let Casey finish speaking
Browse files Browse the repository at this point in the history
  • Loading branch information
alters-mit committed Jun 17, 2024
1 parent c9edcf6 commit 93b81c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions text/src/tts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ fn on_utterance_end(_: UtteranceId) {

#[cfg(test)]
mod tests {
use std::{thread::sleep, time::Duration};

use crate::Enqueable;
use common::get_test_config;

Expand All @@ -279,6 +281,8 @@ mod tests {
assert!(tts.is_speaking());
tts.stop();
tts.update();
// Let Casey finish speaking.
sleep(Duration::from_secs(1));
assert!(!tts.is_speaking());
}
}

0 comments on commit 93b81c1

Please sign in to comment.