summaryrefslogtreecommitdiff
path: root/spec/frontend/lib/utils/poll_spec.js
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-09-18 03:11:15 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-09-18 03:11:15 +0000
commit20e1a45b541eb58dad95c7a34f56e1c442ebde9f (patch)
tree29dacfd6ed8c15393b848c7daa7c886acce52005 /spec/frontend/lib/utils/poll_spec.js
parent2a37314a62b83203513ae65c36379bae9db59916 (diff)
downloadgitlab-ce-20e1a45b541eb58dad95c7a34f56e1c442ebde9f.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/lib/utils/poll_spec.js')
-rw-r--r--spec/frontend/lib/utils/poll_spec.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/frontend/lib/utils/poll_spec.js b/spec/frontend/lib/utils/poll_spec.js
index 1f150599983..94a5f5385b7 100644
--- a/spec/frontend/lib/utils/poll_spec.js
+++ b/spec/frontend/lib/utils/poll_spec.js
@@ -128,9 +128,11 @@ describe('Poll', () => {
errorCallback: callbacks.error,
});
+ expect(Polling.timeoutID).toBeNull();
+
Polling.makeDelayedRequest(1);
- expect(Polling.timeoutID).toBeTruthy();
+ expect(Polling.timeoutID).not.toBeNull();
return waitForAllCallsToFinish(2, () => {
Polling.stop();