diff --git a/test/unitTest/media/audio/test_audio_frame_resizer.cpp b/test/unitTest/media/audio/test_audio_frame_resizer.cpp
index cd8d9ed98170ded222ac5ce2d68bf262ee622ef4..3aea8873e3638dd336829ff3d2104003cc632eb3 100644
--- a/test/unitTest/media/audio/test_audio_frame_resizer.cpp
+++ b/test/unitTest/media/audio/test_audio_frame_resizer.cpp
@@ -122,9 +122,9 @@ AudioFrameResizerTest::testDifferentFormat()
 {
     // frame format != q_->format_
     q_.reset(new AudioFrameResizer(format_, outputSize_, [this](std::shared_ptr<AudioFrame>&& f){ gotFrame(std::move(f)); }));
-    auto in = getFrame(960);
-    // XXX this should never be done, but use this as a shortcut for this test case
-    in->pointer()->channels = 1;
+    auto in = getFrame(outputSize_-27);
+    q_->enqueue(std::move(in));
+    CPPUNIT_ASSERT(q_->samples()==outputSize_-27);
     q_->setFormat(AudioFormat::MONO(), 960);
     CPPUNIT_ASSERT(q_->samples() == 0);
 }