# Timed out, test exceeded 10 seconds

**URL:** <https://forum.codecrafters.io/t/timed-out-test-exceeded-10-seconds/2563>\
**Category:** Bug Reports\
**Tags:** challenge:bittorrent\
**Created:** [October 24, 2024, 9:08pm UTC](https://forum.codecrafters.io/t/timed-out-test-exceeded-10-seconds/2563 "2024-10-24T21:08:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![charlesmatte](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/charlesmatte/32/1012_2.png) [@charlesmatte](https://forum.codecrafters.io/u/charlesmatte)\
**Post date:** [October 24, 2024, 9:08pm UTC](https://forum.codecrafters.io/t/timed-out-test-exceeded-10-seconds/2563/1 "2024-10-24T21:08:49Z")

</div>

Stuck on stage #OW9 but my code doesn’t seem ot be the problem.

When running tests with git the tests keep failing because of a timeout. I get the following logs everytime:

```auto
remote: [tester::#OW9] Running tests for Stage #OW9 (Parse torrent file)
remote: [tester::#OW9] Running ./your_bittorrent.sh info /tmp/torrents3491338518/codercat.gif.torrent
remote: [your_program] Tracker URL: http://bittorrent-test-tracker.codecrafters.io/announce
remote: [your_program] Length: 2994120
remote: [tester::#OW9] Checking for tracker URL (Tracker URL: http://bittorrent-test-tracker.codecrafters.io/announce)
remote: [tester::#OW9] Tracker URL is correct
remote: [tester::#OW9] Checking for length (Length: 2994120)
remote: [tester::#OW9] Length is correct
remote: [tester::#OW9] Test passed.
remote:
remote: [tester::#MN6] Running tests for Stage #MN6 (Decode bencoded dictionaries)
remote: [tester::#MN6] Running ./your_bittorrent.sh decode de
remote: [tester::#MN6] Expected output: {}
remote: [your_program] {}
remote: [tester::#MN6] Running ./your_bittorrent.sh decode d3:foo6:orange5:helloi52ee
remote: [tester::#MN6] Expected output: {"foo":"orange","hello":52}
remote: [your_program] {"foo":"orange","hello":52}
remote: [tester::#MN6] Running ./your_bittorrent.sh decode d10:inner_dictd4:key16:value14:key2i42e8:list_keyl5:item15:item2i3eeee
remote: [tester::#MN6] Expected output: {"inner_dict":{"key1":"value1","key2":42,"list_key":["item1","item2",3]}}
remote: [your_program] {"inner_dict":{"key1":"value1","key2":42,"list_key":["item1","item2",3]}}
remote: [tester::#MN6] Test passed.
remote:
remote: [tester::#AH1] Running tests for Stage #AH1 (Decode bencoded lists)
remote: [tester::#AH1] Running ./your_bittorrent.sh decode le
remote: [tester::#AH1] Expected output: []
remote: [your_program] []
remote: [tester::#AH1] Running ./your_bittorrent.sh decode l9:blueberryi40ee
remote: [tester::#AH1] Expected output: ["blueberry",40]
remote: [your_program] ["blueberry",40]
remote: [tester::#AH1] Running ./your_bittorrent.sh decode lli40e9:blueberryee
remote: [tester::#AH1] Expected output: [[40,"blueberry"]]
remote: [your_program] [[40,"blueberry"]]
remote: [tester::#AH1] Running ./your_bittorrent.sh decode lli4eei5ee
remote: [tester::#AH1] Expected output: [[4],5]
remote: [tester::#AH1] timed out, test exceeded 10 seconds
remote: [tester::#AH1] Test failed

```

I’ve tried running the faulty command locally and it works fine.  
./your\_bittorrent.sh decode lli4eei5ee returns [[4],5] as expected.

I tried measuring the performance of each tested command and none of them take more than ~50ms.

Any insight? My code behaves as expected but seems like the timeout delay for the tests is too short.

---

<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:** [October 25, 2024, 5:38am UTC](https://forum.codecrafters.io/t/timed-out-test-exceeded-10-seconds/2563/3 "2024-10-25T05:38:29Z")

</div>

@charlesmatte Thanks for highlighting the issue! We’ve received [similar reports](https://forum.codecrafters.io/t/getting-time-out-on-mn6/2549), and have been looking into it. I’ll keep you updated once the issue is resolved.

---

<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 20, 2024, 3:51pm UTC](https://forum.codecrafters.io/t/timed-out-test-exceeded-10-seconds/2563/4 "2024-11-20T15:51:31Z")

</div>

Hi @charlesmatte, we’ve increased the timeout for C#.

Could you check and let us know if you’re still experiencing the same issue? Thanks!

---

<div class="post-metadata">

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

</div>

No it was fixed a few weeks ago.

Thanks a lot for your reply!

---

<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:01am UTC](https://forum.codecrafters.io/t/timed-out-test-exceeded-10-seconds/2563/7 "2024-11-26T11:01:51Z")

</div>

A post was split to a new topic: [Timed out test exceeded 10 seconds](https://forum.codecrafters.io/t/timed-out-test-exceeded-10-seconds/3146)

---

<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 3, 2024, 11:01am UTC](https://forum.codecrafters.io/t/timed-out-test-exceeded-10-seconds/2563/8 "2024-12-03T11:01:55Z")

</div>

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