test: ensure fixtures are processed in order
This commit is contained in:
parent
1224a5906a
commit
3743866d9f
@ -3,6 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
@ -21,6 +22,8 @@ func TestConvertFixtures(t *testing.T) {
|
|||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sort.Strings(fixtures)
|
||||||
|
|
||||||
for _, fixture := range fixtures {
|
for _, fixture := range fixtures {
|
||||||
if !strings.HasSuffix(fixture, `.php`) {
|
if !strings.HasSuffix(fixture, `.php`) {
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user