diff --git a/test/modules/job_fortress.lua b/test/modules/job_fortress.lua index 635b62da02..6f3047c8bf 100644 --- a/test/modules/job_fortress.lua +++ b/test/modules/job_fortress.lua @@ -8,6 +8,8 @@ function test.jobIDsAreSorted() local is_sorted = true local prev_id = nil + -- assumes there are at least some "naturally added" jobs currently in the list + -- but this should always be true for CI test saves for _, job in utils.listpairs(df.global.world.jobs.list) do if prev_id and job.id < prev_id then is_sorted = false