test: ensure fixtures are processed in order

This commit is contained in:
mappu 2020-04-05 17:11:20 +12:00
parent 1224a5906a
commit 3743866d9f

View File

@ -3,6 +3,7 @@ package main
import (
"os"
"path/filepath"
"sort"
"strings"
"testing"
)
@ -21,6 +22,8 @@ func TestConvertFixtures(t *testing.T) {
t.Fatal(err)
}
sort.Strings(fixtures)
for _, fixture := range fixtures {
if !strings.HasSuffix(fixture, `.php`) {
continue