diff --git a/src/SoundFingerprinting.SQL.Tests/Integration/FingerprintCommandBuilderIntTest.cs b/src/SoundFingerprinting.SQL.Tests/Integration/FingerprintCommandBuilderIntTest.cs index 67ffb21..766c8eb 100644 --- a/src/SoundFingerprinting.SQL.Tests/Integration/FingerprintCommandBuilderIntTest.cs +++ b/src/SoundFingerprinting.SQL.Tests/Integration/FingerprintCommandBuilderIntTest.cs @@ -64,8 +64,7 @@ public void CreateFingerprintsFromDefaultFileAndAssertNumberOfFingerprints() .UsingServices(bassAudioService); double seconds = tagService.GetTagInfo(PathToMp3).Duration; - int samples = (int)(seconds * fingerprintCommand.FingerprintConfiguration.SampleRate); - int expectedFingerprints = (samples / StaticStride) - 1; + int expectedFingerprints = (int)(seconds * fingerprintCommand.FingerprintConfiguration.SampleRate / StaticStride * StaticStride / StaticStride) - 2; // ? new file generates 1 fingerprint less; var fingerprints = ((FingerprintCommand)fingerprintCommand).Fingerprint().Result;