From c4861b2402184c11820a404726e4c0cb9b3dbaf5 Mon Sep 17 00:00:00 2001 From: adfoster-r7 Date: Tue, 19 Sep 2023 13:17:53 +0100 Subject: [PATCH] Fix non-deterministic test order --- spec/lib/fingerprint_self_test_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/fingerprint_self_test_spec.rb b/spec/lib/fingerprint_self_test_spec.rb index 55e0d006..6e5c405d 100644 --- a/spec/lib/fingerprint_self_test_spec.rb +++ b/spec/lib/fingerprint_self_test_spec.rb @@ -6,7 +6,7 @@ describe Recog::DB do let(:schema) { Nokogiri::XML::Schema(open(File.join(FINGERPRINT_DIR, 'fingerprints.xsd'))) } - Dir[File.join(FINGERPRINT_DIR, '*.xml')].each do |xml_file_name| + Dir[File.join(FINGERPRINT_DIR, '*.xml')].sort.each do |xml_file_name| describe "##{File.basename(xml_file_name)}" do it 'is valid XML' do doc = Nokogiri::XML(open(xml_file_name))