Skip to content

Commit

Permalink
fixes flakey backend+overseer test
Browse files Browse the repository at this point in the history
  • Loading branch information
robacarp committed Nov 2, 2024
1 parent 4a39196 commit e20a4b9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions spec/mosquito/backend/overseer_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ require "../../spec_helper"

describe Mosquito::Backend do
it "can keep a list of overseers" do
overseer_ids = ["overseer1", "overseer2", "overseer3"]
overseer_ids.each do |overseer_id|
Mosquito.backend.register_overseer overseer_id
end
clean_slate do
overseer_ids = ["overseer1", "overseer2", "overseer3"]
overseer_ids.each do |overseer_id|
Mosquito.backend.register_overseer overseer_id
end

assert_equal overseer_ids, Mosquito.backend.list_overseers
assert_equal overseer_ids, Mosquito.backend.list_overseers
end
end
end

0 comments on commit e20a4b9

Please sign in to comment.