Skip to content

Mock timeouts and Promise in SmartInterval tests

Inactive Account requested to merge winh-speedup-smartinterval-tests into master

What does this MR do?

Mocks all timeouts using the Jasmine clock and replaces the Promise callback with a fake implementation.

Why was this MR needed?

This reduces the time these tests need to run from over 2 seconds to less than 100 milliseconds.

What are the relevant issue numbers?

https://gitlab.com/gitlab-org/gitlab-ce/issues/44174

Edited by Inactive Account

Merge request reports