Skip to content
Ravnary
A Knowledge Platform
Categories
Learn
Cheatsheets
Paths
Favourites
Review
Community
Colour theme
Light
Dark
System
Learn
Design Patterns
Creational Patterns
Singleton Pattern
Quiz
Q 01
/ 04
Advanced
Question 1 of 4. 0 correct, 0 incorrect.
Tests pass when run one at a time and fail when run together. Each test changes a setting on
Config.instance()
. Why?
The tests run in parallel threads and interfere with each other.
The single instance carries one test's changes into the next test.
The test runner caches imports, so the tests see stale code.
Check answer
Home
Learn
Paths
Saved
Community