# Timed out test exceeded 10 seconds

**URL:** <https://forum.codecrafters.io/t/timed-out-test-exceeded-10-seconds/3146>\
**Category:** Challenges\
**Tags:** challenge:redis\
**Created:** [November 26, 2024, 8:23am UTC](https://forum.codecrafters.io/t/timed-out-test-exceeded-10-seconds/3146 "2024-11-26T08:23:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunalvirdi](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/kunalvirdi/32/3151_2.png) [@kunalvirdi](https://forum.codecrafters.io/u/kunalvirdi)\
**Post date:** [November 26, 2024, 8:23am UTC](https://forum.codecrafters.io/t/timed-out-test-exceeded-10-seconds/3146/1 "2024-11-26T08:23:15Z")

</div>

I am coding in JavaScript and facing an issue where my results are correct as expected. However, when running test cases, it exceeds the limit. How can I resolve this?

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [November 26, 2024, 11:05am UTC](https://forum.codecrafters.io/t/timed-out-test-exceeded-10-seconds/3146/2 "2024-11-26T11:05:34Z")

</div>

Hi @kunalvirdi, I moved your post to a standalone topic, since it seems to be a separate issue.

We recently experienced a [downtime incident](https://status.codecrafters.io/incident/467783), which should be resolved now.

Could you check again, and let me know if the issue persists or if your tests are still timing out?

---

<div class="post-metadata">

**Author:** ![kunalvirdi](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/kunalvirdi/32/3151_2.png) [@kunalvirdi](https://forum.codecrafters.io/u/kunalvirdi)\
**Post date:** [November 26, 2024, 2:29pm UTC](https://forum.codecrafters.io/t/timed-out-test-exceeded-10-seconds/3146/3 "2024-11-26T14:29:33Z")

</div>

Yes, the issue still persists. This time, I intentionally caused the code to fail by sending a random response after a certain time, but it still failed with the same error.

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [November 26, 2024, 5:24pm UTC](https://forum.codecrafters.io/t/timed-out-test-exceeded-10-seconds/3146/4 "2024-11-26T17:24:37Z")

</div>

Got it! Could you [upload your code to GitHub](https://docs.codecrafters.io/features/publish-to-github) and share the link? It will be much easier to debug if I can run it directly.

---

<div class="post-metadata">

**Author:** ![kunalvirdi](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/kunalvirdi/32/3151_2.png) [@kunalvirdi](https://forum.codecrafters.io/u/kunalvirdi)\
**Post date:** [November 26, 2024, 6:06pm UTC](https://forum.codecrafters.io/t/timed-out-test-exceeded-10-seconds/3146/5 "2024-11-26T18:06:30Z")

</div>

Here is, [Link of my code to github](https://github.com/kunalvirdi/codecrafters-redis-javascript), I have added test-client files for testing purpose and add some debug messages as well for better understanding.

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [November 26, 2024, 6:56pm UTC](https://forum.codecrafters.io/t/timed-out-test-exceeded-10-seconds/3146/6 "2024-11-26T18:56:06Z")

</div>

I tried running your code against the previous stages, but it’s no longer passing **#UM0 (Streams - Query single stream using XREAD)**.

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/a/ade696c6be3aa28fda8d077f9b98f9c038e997aa.png)

Suggestions:

1. Use [our CLI](https://docs.codecrafters.io/cli/installation) to test against previous stages by running:

```auto
codecrafters test --previous

```

1. Focus on fixing the early stages first, as later stages depend on them.

---

<div class="post-metadata">

**Author:** ![kunalvirdi](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/kunalvirdi/32/3151_2.png) [@kunalvirdi](https://forum.codecrafters.io/u/kunalvirdi)\
**Post date:** [November 26, 2024, 7:20pm UTC](https://forum.codecrafters.io/t/timed-out-test-exceeded-10-seconds/3146/7 "2024-11-26T19:20:35Z")

</div>

Thanks for your assistance, I’ll figure out bug in code and will try the stage again!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [December 1, 2024, 7:21pm UTC](https://forum.codecrafters.io/t/timed-out-test-exceeded-10-seconds/3146/8 "2024-12-01T19:21:32Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
