Skip to content

Commit 618b5a3

Browse files
committed
[NEP-18090]: Adding en endpoint for warming up the dataset cache
1 parent 1e3e16e commit 618b5a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/superset/dataset/warm_up_cache_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
RSpec.describe Superset::Dataset::WarmUpCache do
44
subject { described_class.new(dashboard_id: dashboard_id) }
55
let(:dashboard_id) { 1 }
6-
let(:response) { nil }
76

87
describe '.perform' do
98
context "Dataset count is not considered" do
9+
let(:response) { nil }
1010
before do
1111
allow(subject).to receive(:response).and_return(response)
1212
end
@@ -44,7 +44,7 @@
4444
end
4545
let(:api_response) { "Dataset warmed up" }
4646
before do
47-
allow(subject).to receive(:fetch_dataset_details).with(1) { dataset_details }
47+
allow(subject).to receive(:fetch_dataset_details).with(dashboard_id) { dataset_details }
4848
allow(subject).to receive(:api_response).and_return(api_response)
4949
end
5050
it 'warms up both the dataset' do

0 commit comments

Comments
 (0)