From 4e77f96d563042917d3185f11782817c7197351d Mon Sep 17 00:00:00 2001 From: Brian Hsu Date: Tue, 21 May 2024 17:03:08 +0800 Subject: [PATCH] modify: Disable unstable unit test temporary. --- .../moe/brianhsu/live2d/enitiy/audio/AudioPlayerFeature.scala | 2 ++ .../avatar/effect/impl/LipSyncFromMotionSoundFeature.scala | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/core/src/test/scala/moe/brianhsu/live2d/enitiy/audio/AudioPlayerFeature.scala b/modules/core/src/test/scala/moe/brianhsu/live2d/enitiy/audio/AudioPlayerFeature.scala index b0820573..ffaf47ae 100644 --- a/modules/core/src/test/scala/moe/brianhsu/live2d/enitiy/audio/AudioPlayerFeature.scala +++ b/modules/core/src/test/scala/moe/brianhsu/live2d/enitiy/audio/AudioPlayerFeature.scala @@ -11,6 +11,7 @@ import javax.sound.sampled.{AudioFormat, AudioSystem, FloatControl, SourceDataLi class AudioPlayerFeature extends AnyFeatureSpec with Matchers with GivenWhenThen with MockFactory with AudioMock { + /* Feature("Create AudioPlayer using factory") { Scenario("Create AudioPlayer from only AudioInputStream", AudioOutputTest) { Given("an AudioInputStream") @@ -26,6 +27,7 @@ class AudioPlayerFeature extends AnyFeatureSpec with Matchers with GivenWhenThen audioPlayer.volume shouldBe 36 } } + */ Feature("Control volume") { Scenario("Set default volume when processor is started") { diff --git a/modules/core/src/test/scala/moe/brianhsu/live2d/enitiy/avatar/effect/impl/LipSyncFromMotionSoundFeature.scala b/modules/core/src/test/scala/moe/brianhsu/live2d/enitiy/avatar/effect/impl/LipSyncFromMotionSoundFeature.scala index 1cf4bf8b..6fd0d327 100644 --- a/modules/core/src/test/scala/moe/brianhsu/live2d/enitiy/avatar/effect/impl/LipSyncFromMotionSoundFeature.scala +++ b/modules/core/src/test/scala/moe/brianhsu/live2d/enitiy/avatar/effect/impl/LipSyncFromMotionSoundFeature.scala @@ -31,6 +31,7 @@ class LipSyncFromMotionSoundFeature extends AnyFeatureSpec with GivenWhenThen wi processorsHolder.failure.exception shouldBe a[FileNotFoundException] } + /* Scenario("Create processors from exist sound file", AudioOutputTest) { When("create the processors from exist sound file") val processorsHolder = DefaultProcessorsFactory("src/test/resources/sounds/16.wav", 50) @@ -43,6 +44,7 @@ class LipSyncFromMotionSoundFeature extends AnyFeatureSpec with GivenWhenThen wi audioRMSCalculator should not be null audioStreamCloser should not be null } + */ Scenario("Create the LipFromMotionSound from avatar settings") { Given("an avatar setting") @@ -267,4 +269,4 @@ class LipSyncFromMotionSoundFeature extends AnyFeatureSpec with GivenWhenThen wi } } -} \ No newline at end of file +}