Code Monkey home page Code Monkey logo

Comments (5)

xg-wang avatar xg-wang commented on September 17, 2024 1

@meirish The first step to help fix is to construct a minimal flaky test repro

from ember-fetch.

viniciussbs avatar viniciussbs commented on September 17, 2024

@walter thanks for remember me. I'll let my team know about your workaround. I guess we do not face this problem anymore since we've made another workaround for an issue on ember-graphql/ember-apollo-client#192, though - planning to send a PR to fix that soon.

from ember-fetch.

arthur5005 avatar arthur5005 commented on September 17, 2024

I spent a significant amount of time coming to the same conclusion with our test suites when we upgraded to Ember 3.6 with the use of the latest ember-simple-auth.

Would fail 25% of the time on authenticate, and move on to the next test step without finishing the login one.

Our authenticator made use of ember-fetch to make the authentication request.

I narrowed it down to the use of ember-fetch in the authenticator and the call to .json() on the response object.

screen shot 2019-01-28 at 4 32 54 pm

Fairly often, the call to.json().then would end this promise chain and move on to the next step.
(In this screenshot, the first breakpoint is hit, the second one is missed, but the test suite continues)

I can confirm

'ember-fetch': {
  preferNative: true
}

is a valid work around for tests.

from ember-fetch.

fpauser avatar fpauser commented on September 17, 2024

We have the same problem in our app (ember-3.9.1). The preferNative workaround helps.

from ember-fetch.

meirish avatar meirish commented on September 17, 2024

We're seeing this as well, along with preferNative: true "fixing" things. Any way I can help debug / fix this?

from ember-fetch.

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.