Git Product home page Git Product logo

Comments (4)

dotlambda avatar dotlambda commented on June 9, 2024

Btw, there are even more failures on Darwin: https://hydra.nixos.org/build/68775014/log
Nevertheless, tests are running without a problem on x86_64.

from aioimaplib.

bamthomas avatar bamthomas commented on June 9, 2024

Sorry for this very late response, I've been a bit overwhelm with my job. No I don't know the reason. At first sight, I'm wondering about charset management, that was often the case for this literal length failures.

from aioimaplib.

aliceh75 avatar aliceh75 commented on June 9, 2024

The same test is failing here with Python 3.5 on an x86_64 Ubuntu 16.04 box. It doesn't always fail - there's a timing issue - but it does most of the time.

I've had a look at it, and I can say the following is happening:

  • IMAP4.wait_server_push returns the last thing present on IMAP4ClientProtocol.idle_queue
  • The test in question expects that value to be STOP_WAIT_SERVER_PUSH, which is added on the queue by IMAP4.stop_wait_server_push, which is called 29 minutes (the default) after IMAP4.idle_start was invoked. The purpose of this is that, even though we're waiting for server to push things to us, we should talk to it every 29 minutes as it might time us out otherwise;
  • What happens when the test fails is that IdleCommand.flush is invoked after IMAP4.stop_wait_server_push, and that adds on top of IMAP4ClientProtocal.idle_queue a number of 'OK Still here' messages that were received from the server and buffered on IdleCommand.buffer. So the last entry on that queue is not STOP_WAIT_SERVER_PUSH as the test was expecting.

I don't know yet whether it is expected that IdleCommand.flush can be invoked after IMAP4.stop_wait_server_push. Depending on that, there is either a problem in the code, or a problem in the test.

I won't have time to look at it more for a few days, so if anyone has some further insights feel free to continue working on this one :-)

from aioimaplib.

bamthomas avatar bamthomas commented on June 9, 2024

the test aioimaplib.tests.test_aioimaplib.TestAioimaplibClocked is always failing on travis with ubuntu 14.04 / python 3.5.5 installed from tarball. It has passed 10 times on my laptop xubuntu 16.04 with python 3.6.3 installed from ppa jonathonf/python-3.6 . It has passed also with python 3.5.2

I'm wondering if it is related to #30

from aioimaplib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.