Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
airenas committed Oct 29, 2024
1 parent db34205 commit 68b84cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pkg/processor/joinAudio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ func TestJoinSSMLAudio_AddPause(t *testing.T) {
err := pr.Process(da)
require.Equal(t, tt.wantErr, err != nil)
if !tt.wantErr {
assert.Equal(t, int(tt.wantSize), int(getTestAudioSize(da.Audio)))
assert.InDelta(t, tt.wantLen, da.AudioLenSeconds, 0.001)
assert.InDelta(t, int(tt.wantSize), int(getTestAudioSize(da.Audio)), 300) // give some delta bacause of hops to time conversion and floating point errors
assert.InDelta(t, tt.wantLen, da.AudioLenSeconds, 0.004)
}
})
}
Expand Down

0 comments on commit 68b84cb

Please sign in to comment.