@@ -149,6 +149,7 @@ struct EditorWhilstProcessingTest : public PluginTest
149149 const int numChannelsRequired = juce::jmax (instance.getTotalNumInputChannels (), instance.getTotalNumOutputChannels ());
150150 juce::AudioBuffer<float > ab (numChannelsRequired, instance.getBlockSize ());
151151 juce::MidiBuffer mb;
152+ mb.ensureSize (32 );
152153
153154
154155 juce::WaitableEvent threadStartedEvent;
@@ -227,6 +228,7 @@ struct AudioProcessingTest : public PluginTest
227228 const int numChannelsRequired = juce::jmax (instance.getTotalNumInputChannels (), instance.getTotalNumOutputChannels ());
228229 juce::AudioBuffer<float > ab (numChannelsRequired, bs);
229230 juce::MidiBuffer mb;
231+ mb.ensureSize (32 );
230232
231233 // Add a random note on if the plugin is a synth
232234 const int noteChannel = r.nextInt ({ 1 , 17 });
@@ -398,6 +400,7 @@ struct AutomationTest : public PluginTest
398400 const int numChannelsRequired = juce::jmax (instance.getTotalNumInputChannels (), instance.getTotalNumOutputChannels ());
399401 juce::AudioBuffer<float > ab (numChannelsRequired, bs);
400402 juce::MidiBuffer mb;
403+ mb.ensureSize (32 );
401404
402405 // Add a random note on if the plugin is a synth
403406 const int noteChannel = r.nextInt ({ 1 , 17 });
@@ -663,6 +666,7 @@ struct ParameterThreadSafetyTest : public PluginTest
663666 const int numChannelsRequired = juce::jmax (instance.getTotalNumInputChannels (), instance.getTotalNumOutputChannels ());
664667 juce::AudioBuffer<float > ab (numChannelsRequired, blockSize);
665668 juce::MidiBuffer mb;
669+ mb.ensureSize (32 );
666670
667671 // Add a random note on if the plugin is a synth
668672 const int noteChannel = r.nextInt ({ 1 , 17 });
0 commit comments