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'); ...@@ -221,8 +221,8 @@ require('~/lib/utils/common_utils');
gl.utils.backOff((next) => { gl.utils.backOff((next) => {
return new Promise((resolve) => { return new Promise((resolve) => {
resolve(expectedResponseValue); resolve(expectedResponseValue);
}).then((resp) => { }).then(() => {
setTimeout(next(resp), 5000); // it will time out setTimeout(next(), 5000); // it will time out
}); });
}, 3000).catch((errBackoffResp) => { }, 3000).catch((errBackoffResp) => {
expect(errBackoffResp instanceof Error).toBe(true); 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