1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
7 class JobTaskTest < ActiveSupport::TestCase
8 test "new tasks get an assigned qsequence" do
9 set_user_from_auth :active
11 assert_not_nil task.qsequence
12 assert_operator(task.qsequence, :>=, 0)
15 test "assigned qsequence is not overwritten" do
16 set_user_from_auth :active
17 task = JobTask.create!(qsequence: 99)
18 assert_equal(99, task.qsequence)