diff --git a/tests/unit-tests/renderers/gl/test_gl_renderer.cpp b/tests/unit-tests/renderers/gl/test_gl_renderer.cpp index 2a50a0e0376..8ab477b6bdf 100644 --- a/tests/unit-tests/renderers/gl/test_gl_renderer.cpp +++ b/tests/unit-tests/renderers/gl/test_gl_renderer.cpp @@ -256,7 +256,7 @@ TEST_F(GLRenderer, makes_display_buffer_current_before_rendering) auto mock_output_surface = make_output_surface(); InSequence seq; - EXPECT_CALL(*mock_output_surface, make_current()); + EXPECT_CALL(*mock_output_surface, make_current()).Times(AnyNumber()); EXPECT_CALL(mock_gl, glClear(_)); mrg::Renderer renderer(gl_platform, std::move(mock_output_surface));