Test error: '<ion-infinite-scroll> must be used inside an <ion-content>'

I got a page with ion-content and a detail component with the ion-infinite-scroll.
The detail component test passes but dev console is showing this error:

ERROR: <ion-infinite-scroll> must be used inside an <ion-content>

The app runs without any errors. Is there a way to suppress this error?