From 3743866d9f3738c63342b3df7490de8800ccfcb6 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 5 Apr 2020 17:11:20 +1200 Subject: [PATCH] test: ensure fixtures are processed in order --- fixtures_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fixtures_test.go b/fixtures_test.go index 082ef15..85997fd 100644 --- a/fixtures_test.go +++ b/fixtures_test.go @@ -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