Tests are failing randomly

Hi Feodor,

Some of our test in the projects are failing randomly and we cannot determine why. They pass %100 times on local, but fails %80 at appveyor. Failings tests are the ones which make rest api calls. How should I debug this?

Project: nopcustom

Best,
Kerem

  1. Hi Kerem,

    I can't see private projects unless you add me ([email blocked]) to collaborators.

    What API do those tests call? Is it the same tests failing every time? Are there any errors?

    -Feodor

  2. Hi Feodor. I added your email.

    The test makes simple webclient get operations and not always fails. I
    tried to build more than ten times and it passed one time. I think there is
    a http error but I could not debug it since the test code uses mock logger
    instance.

    By this time I disabled these test, so if you are going to check the
    project please use the history builds 8d50754f or earlier ones.

    Thanks,
    Kerem

  3. Where is that API hosted?

    -Feodor

  4. Hm, like you I can see nothing from test results.

    You should enable logging or throw exception when a call to that API fails.

  5. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:54 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions