Made tests not parallel
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
DataHoarder 2022-05-29 12:29:30 +02:00
parent a6134dfd3e
commit 1f8942253b
Signed by: DataHoarder
SSH key fingerprint: SHA256:EnPQOqPpbCa7nzalCEJY2sd9iPluFIBuJu2rDFalACI
16 changed files with 3 additions and 25 deletions

View file

@ -25,6 +25,8 @@ Collection of audio utilities for decoding/encoding files and streams.
## Container packetizers supported
Only output from Kirika's own encoders is supported.
| Container | Packetizer | Keep Mode | Sample Numbers | Offset | Notes |
|:---------:|:----------:|:---------:|:--------------:|:------:|:---------------------------------------------------------------------------------------------------------------------------------------|
| **FLAC** | ✅ | ✅ | ✅ | ❌ | Uses [mewkiz/flac](https://github.com/mewkiz/flac) for parsing streams. |

View file

@ -47,7 +47,6 @@ func TestEncodeAAC(t *testing.T) {
}
func TestDecodeAAC(t *testing.T) {
t.Parallel()
fp, err := os.Open(test.TestSingleSample24)
if err != nil {
t.Error(err)
@ -97,7 +96,6 @@ func TestDecodeAAC(t *testing.T) {
/*
func TestDecodeAACMP4(t *testing.T) {
t.Parallel()
fp, err := os.Open(test.TestSingleSample24)
if err != nil {
t.Error(err)
@ -130,7 +128,6 @@ func TestDecodeAACMP4(t *testing.T) {
*/
func TestEncodeAACMP4(t *testing.T) {
t.Parallel()
fp, err := os.Open(test.TestSingleSample24)
if err != nil {
t.Error(err)
@ -167,7 +164,6 @@ func TestEncodeAACMP4(t *testing.T) {
}
func TestEncodeAACHEv2(t *testing.T) {
t.Parallel()
fp, err := os.Open(test.TestSingleSample24)
if err != nil {
t.Error(err)

View file

@ -10,7 +10,6 @@ import (
)
func TestEncodeAAC(t *testing.T) {
t.Parallel()
fp, err := os.Open(test.TestSingleSample24)
if err != nil {
t.Error(err)

View file

@ -10,7 +10,6 @@ import (
)
func TestEncodeALAC(t *testing.T) {
t.Parallel()
fp, err := os.Open(test.TestSingleSample24)
if err != nil {
t.Error(err)
@ -46,7 +45,6 @@ func TestEncodeALAC(t *testing.T) {
}
func TestDecodeALAC(t *testing.T) {
t.Parallel()
fp, err := os.Open(test.TestSingleSample24)
if err != nil {
t.Error(err)

View file

@ -188,13 +188,13 @@ func (c AnalyzerChannel) SkipEndSamplesMultiple(wg *sync.WaitGroup, offset *uint
func NewHasherAudioGap(samples, sampleRate, channels, bitDepth int) (channel AnalyzerChannel) {
channel = make(AnalyzerChannel, 1)
defer close(channel)
channel <- &AnalyzerPacket{
Samples: make([]int32, samples*channels),
Channels: channels,
SampleRate: sampleRate,
BitDepth: bitDepth,
}
close(channel)
return
}

View file

@ -9,7 +9,6 @@ import (
)
func TestEncodeFLAC(t *testing.T) {
t.Parallel()
fp, err := os.Open(test.TestSingleSample24)
if err != nil {
t.Error(err)
@ -42,7 +41,6 @@ func TestEncodeFLAC(t *testing.T) {
}
func TestEncodeFLACOgg(t *testing.T) {
t.Parallel()
fp, err := os.Open(test.TestSingleSample24)
if err != nil {
t.Error(err)

View file

@ -10,7 +10,6 @@ import (
)
func TestEncodeMP3(t *testing.T) {
t.Parallel()
fp, err := os.Open(test.TestSingleSample24)
if err != nil {
t.Error(err)

View file

@ -10,7 +10,6 @@ import (
)
func TestEncodeOpus(t *testing.T) {
t.Parallel()
fp, err := os.Open(test.TestSingleSample24)
if err != nil {
t.Error(err)

View file

@ -10,7 +10,6 @@ import (
)
func TestEncodeTTA(t *testing.T) {
t.Parallel()
fp, err := os.Open(test.TestSingleSample24)
if err != nil {
t.Error(err)

View file

@ -12,7 +12,6 @@ import (
)
func TestPacketizeADTS(t *testing.T) {
t.Parallel()
fp, err := os.Open(test.TestSingleSample24)
if err != nil {
t.Error(err)

View file

@ -13,7 +13,6 @@ import (
)
func TestPacketizeFLAC(t *testing.T) {
t.Parallel()
fp, err := os.Open(test.TestSingleSample24)
if err != nil {
t.Error(err)

View file

@ -12,7 +12,6 @@ import (
)
func TestPacketizeMP3(t *testing.T) {
t.Parallel()
fp, err := os.Open(test.TestSingleSample24)
if err != nil {
t.Error(err)

View file

@ -12,7 +12,6 @@ import (
)
func TestPacketizeOgg(t *testing.T) {
t.Parallel()
fp, err := os.Open(test.TestSingleSample24)
if err != nil {
t.Error(err)

View file

@ -13,7 +13,6 @@ import (
)
func TestReplayGainNormalization24(t *testing.T) {
t.Parallel()
fp, err := os.Open(test.TestSingleSample24)
if err != nil {
@ -43,7 +42,6 @@ func TestReplayGainNormalization24(t *testing.T) {
}
func TestReplayGain24(t *testing.T) {
t.Parallel()
fp, err := os.Open(test.TestSingleSample24)
if err != nil {
@ -71,7 +69,6 @@ func TestReplayGain24(t *testing.T) {
}
func TestReplayGain16(t *testing.T) {
t.Parallel()
fp, err := os.Open(test.TestSingleSample16)
if err != nil {
@ -99,7 +96,6 @@ func TestReplayGain16(t *testing.T) {
}
func TestAlbumReplayGain(t *testing.T) {
t.Parallel()
location := test.TestSampleLocations[1]
entries, err := os.ReadDir(location)

View file

@ -10,7 +10,6 @@ import (
)
func TestHasher24(t *testing.T) {
t.Parallel()
fp, err := os.Open(test.TestSingleSample24)
if err != nil {
@ -48,7 +47,6 @@ func TestHasher24(t *testing.T) {
}
func TestHasher16(t *testing.T) {
t.Parallel()
fp, err := os.Open(test.TestSingleSample16)
if err != nil {

View file

@ -1,5 +1,4 @@
//go:build !disable_format_tta && !disable_codec_tta
// +build !disable_format_tta,!disable_codec_tta
package hasher
@ -13,7 +12,6 @@ import (
)
func TestHasher16TTA(t *testing.T) {
t.Parallel()
fp, err := os.Open(test.TestSingleSample16TTA)
if err != nil {