 
         ->
           # blocking user for 1 day
-          untilDate = new Date(Date.now() + 1000 * 60 * 24)
+          untilDate = new Date(Date.now() + 1000 * 60 * 60 * 24)
           user.block untilDate, (err) ->
             expect(err).to.not.exist
             queue.next()
 
         ->
-          # expecting login attempt to fail
+          # expecting login attempt to fail and return blocked message
           JUser.login clientId, loginCredentials, (err)->
             toDate = user.blockedUntil.toUTCString()
             expect(err.message).to.be.equal JUser.getBlockedMessage toDate


      loginCredentials = generateCredentials()

      JUser.login null, loginCredentials, (err) ->
        expect(err).to.not.exist
        done()

          setUserPasswordStatus queue, username, 'needs reset'

        ->
          # expecting unsuccessful login attempt
          JUser.login clientId, loginCredentials, (err)->
            expect(err).to.exist
            queue.next()
