Skip to content

test(bot): add regression test for init retry behavior#88

Open
Dhereal1 wants to merge 1 commit intoHyperlinksSpace:mainfrom
Dhereal1:test/bot-init-retry-regression
Open

test(bot): add regression test for init retry behavior#88
Dhereal1 wants to merge 1 commit intoHyperlinksSpace:mainfrom
Dhereal1:test/bot-init-retry-regression

Conversation

@Dhereal1
Copy link
Copy Markdown
Contributor

@Dhereal1 Dhereal1 commented Apr 3, 2026

Context

Previously, a failed bot.init() would cache a rejected promise, causing the bot to stop processing updates permanently.

Test

  • Simulates init() failing once and succeeding on retry
  • Verifies first call fails and second succeeds
  • Asserts init() is called twice (no cached rejection)

Result

  • Prevents regression of “dead bot after init failure”
  • Ensures retry logic remains intact

@Dhereal1 Dhereal1 force-pushed the test/bot-init-retry-regression branch from d6dcde2 to 89b531f Compare April 3, 2026 07:10
Copy link
Copy Markdown
Member

@staindart staindart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you write a test, please write it in one commit with the behaviour it tests. This fix is already pulled in PR #85 as well with the test that causes an overlap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants