Here is my code, in wpt.runtest function i am hitting some url and getting url in response, now i will use this url in my request function, but i need to wait for sometime as it takes some time before the data is available at the url which is to be used in request module.
wpt.runTest('http://some url ',function(err, data) {
        //console.log("hello -->",err || data);
        data_url = data.data.summaryCSV;
        console.log(data_url);
        console.log('-----------');
        console.log(data_url);
        console.log('-----------');
        request({uri:data_url,method:'GET'}, function (error, response,body)  {
            console.log('----@@@@@@----');
            console.log(response.headers);
            console.log('----@@@@@@----');
            //console.log(response);
            if (error) {
                console.log('got an error' + error);
            }
            //console.log(response);
            //console.log(body);
            var data = body;
            console.log('here is the body' + body);
what i want is, there should be a time gap or pause before my request function gets executed, how can i achieve this