Commit 20cbfb48 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Removed unused response in promise

parent f64fbf0e
......@@ -221,8 +221,8 @@ require('~/lib/utils/common_utils');
gl.utils.backOff((next) => {
return new Promise((resolve) => {
resolve(expectedResponseValue);
}).then((resp) => {
setTimeout(next(resp), 5000); // it will time out
}).then(() => {
setTimeout(next(), 5000); // it will time out
});
}, 3000).catch((errBackoffResp) => {
expect(errBackoffResp instanceof Error).toBe(true);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment