Skip to content

Commit d117a91

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

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
@@ -47,9 +47,9 @@
4747
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
50-
it 'warms up both the dataset' do
50+
it 'warms up all the datasets' do
5151
subject.response
52-
expect(subject).to have_received(:api_response).twice
52+
expect(subject).to have_received(:api_response).exactly(dataset_details.count).times
5353
end
5454
end
5555
end

0 commit comments

Comments
 (0)