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 ( 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