fix: Zemu.checkAndPullImage should reliably reject#565
fix: Zemu.checkAndPullImage should reliably reject#565turbocrime wants to merge 2 commits intoZondax:mainfrom
Conversation
WalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~7 minutes Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🔇 Additional comments (8)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
| import { DEFAULT_EMU_IMG } from '../src/constants' | ||
|
|
||
| describe('checkAndPullImage fails', () => { | ||
| const BAD_IMAGE_NAME = 'this is not a valid image name' |
There was a problem hiding this comment.
i encountered the issue due to network errors, but it seems like simply requesting an invalid image name can activate the same conditions.
if the network request made by
checkAndPullImagefails for any reason, sometimes the promise stalls forever.this PR attempts to make promise rejection more reliable.
relevant to #564
Summary by CodeRabbit
Bug Fixes
Tests