Skip to content

Commit

Permalink
Fix sporadic test failure when MiqEvent is not yet defined
Browse files Browse the repository at this point in the history
Closes #20986
  • Loading branch information
Fryguy committed Feb 3, 2021
1 parent 3f03f3e commit fff9dfb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/lib/evm_database_ops_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
allow(FileUtils).to receive(:mv).and_return(true)
allow(EvmDatabaseOps).to receive(:backup_destination_free_space).and_return(200.megabytes)
allow(EvmDatabaseOps).to receive(:database_size).and_return(100.megabytes)

MiqEvent # ensure the MiqEvent class is defined so we can verify raised events
end

it "locally" do
Expand Down Expand Up @@ -98,6 +100,8 @@
allow(FileUtils).to receive(:mv).and_return(true)
allow(EvmDatabaseOps).to receive(:backup_destination_free_space).and_return(200.megabytes)
allow(EvmDatabaseOps).to receive(:database_size).and_return(100.megabytes)

MiqEvent # ensure the MiqEvent class is defined so we can verify raised events
end

it "locally" do
Expand Down

0 comments on commit fff9dfb

Please sign in to comment.