                 lastAutoImport.format(format).should.equal '01/01/1970'
 
             it 'Then the fetch function should have been called after a day', (done) ->
+                @timeout 6000
                 @sandbox.clock.tick 1 * day
                 count = 0
                 realtime = RealtimeAdapter app, 'konnector.*'

                    count += 1
                    Konnector.find id, (err, body) =>
                        if count is 1
                            body.isImporting.should.equal true
                            # Without that fetch doesn't start.
                            @sandbox.clock.tick 1 * minute
                        else if count is 2
                            body.isImporting.should.equal false
                            done() if done?

                            done()

            it 'Then konnector state should be updating', (done) ->
                @timeout 6000
                count = 0
                realtime = RealtimeAdapter app, 'konnector.*'

                realtime.on 'konnector.update', (event, id) =>
                    count += 1
                    Konnector.find id, (err, body) =>
                        if count is 1
                            if body.isImporting is false
                                count = 0
                            else
                                # Without that fetch doesn't start.
                                @sandbox.clock.tick 1 * minute
                        else if count is 2
                            body.isImporting.should.equal false
                            done() if done?
