Coder Social home page Coder Social logo

Even After bumping kotlinx coroutine test dependency to 1.8.0 giving an UncaughtExceptionsBeforeTest. about kotlinx.coroutines HOT 5 OPEN

harshal-msf avatar harshal-msf commented on August 28, 2024
Even After bumping kotlinx coroutine test dependency to 1.8.0 giving an UncaughtExceptionsBeforeTest.

from kotlinx.coroutines.

Comments (5)

dkhalanskyjb avatar dkhalanskyjb commented on August 28, 2024

The fix is what the exception says: don't throw any exceptions before runTest starts. Exceptions thrown before runTest begins are always considered to be errors.

from kotlinx.coroutines.

harshal-msf avatar harshal-msf commented on August 28, 2024

Yes Exceptions is self-explanatory. However, when I implemented a try-catch block to check for suppressed exceptions, none were returned. Despite observing that suppressed exceptions are added in TestScope.enter(), none are being printed.
Not sure am i missing any step?

from kotlinx.coroutines.

dkhalanskyjb avatar dkhalanskyjb commented on August 28, 2024

Interesting. Do you observe suppressed exceptions if you add Thread.sleep(1000) just before runTest?

from kotlinx.coroutines.

harshal-msf avatar harshal-msf commented on August 28, 2024

Need to check this i will check this and update accordingly.

from kotlinx.coroutines.

dkhalanskyjb avatar dkhalanskyjb commented on August 28, 2024

@harshal-msf, any updates?

from kotlinx.coroutines.

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.