Skip to content

Commit

Permalink
reorder test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
smo921 committed May 13, 2024
1 parent bcb809e commit 0c2dbdc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/kennel/models/dashboard_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,15 @@ def resolve(force: false)
}
end

it "ignores missing ids" do
assert_nil resolve[:requests].last[:queries].last[:slo_id]
end

it "does not modify regular ids" do
definition[:requests].last[:queries].last[:slo_id] = "abcdef1234567"
resolve[:requests].last[:queries].last[:slo_id].must_equal "abcdef1234567"
end

it "ignores missing ids" do
assert_nil resolve[:requests].last[:queries].last[:slo_id]
end

it "resolves the slo widget with full id" do
definition[:requests].last[:queries].last[:slo_id] = "#{project.kennel_id}:b"
id_map.set("slo", "a:c", "1")
Expand Down

0 comments on commit 0c2dbdc

Please sign in to comment.