# Pomodoro Clock - test #11 fails

**URL:** <https://forum.freecodecamp.org/t/pomodoro-clock-test-11-fails/327320>\
**Category:** General\
**Created:** [November 22, 2019, 1:43pm UTC](https://forum.freecodecamp.org/t/pomodoro-clock-test-11-fails/327320 "2019-11-22T13:43:13Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikalsson](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nikalsson/32/128297_2.png) [@nikalsson](https://forum.freecodecamp.org/u/nikalsson)\
**Post date:** [November 22, 2019, 1:43pm UTC](https://forum.freecodecamp.org/t/pomodoro-clock-test-11-fails/327320/1 "2019-11-22T13:43:13Z")

</div>

Hello,

I am banging my head against the wall with the Pomodoro clock, I cannot get pass test

- 
# 11. If the timer is paused and I click the element with id=“start\_stop”, the countdown should resume running from the point at which it was paused.

As far as I see and understand, the countdown does stop and resume in my app as it should.

My code is here, Pomodoro clock related file is in src/App.js  
https://repl.it/repls/InbornCompassionateHandwritingrecognition?lite=true

Thanks in advance for any help! 🙂

EDIT: Previous repl.it was not working, corrected the link

---

<div class="post-metadata">

**Author:** ![nikalsson](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nikalsson/32/128297_2.png) [@nikalsson](https://forum.freecodecamp.org/u/nikalsson)\
**Post date:** [November 25, 2019, 2:06pm UTC](https://forum.freecodecamp.org/t/pomodoro-clock-test-11-fails/327320/2 "2019-11-25T14:06:55Z")

</div>

I noticed that my link to the project was not working. Updated the original post with a working link to the project. Still have not been able to solve the issue.

---

<div class="post-metadata">

**Author:** ![rahrahrah](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/rahrahrah/32/126085_2.png) [@rahrahrah](https://forum.freecodecamp.org/u/rahrahrah)\
**Post date:** [November 26, 2019, 3:02am UTC](https://forum.freecodecamp.org/t/pomodoro-clock-test-11-fails/327320/3 "2019-11-26T03:02:04Z")

</div>

Having a similar issue, code looks very similar as well…

> [@Pomodoro Clock Resume Failure](http://forum.freecodecamp.org/t/pomodoro-clock-resume-failure/327952/):
>
> I am attempting to utilize setInterval and clearInterval to pause and play the clock, however, I am unsure what is happening in this instance… Here is the error I am receiving ’ 11. If the timer is paused and I click the element with id=“start\_stop”, the countdown should resume running from the point at which it was paused.’ Specific error… Pomodoro has started but time displayed is not changing: expected '00' to not equal '00' AssertionError: Pomodoro has started but time displayed is not ch…

If I get an answer that is helpful, I will try to help out if i can.

---

<div class="post-metadata">

**Author:** ![nikalsson](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nikalsson/32/128297_2.png) [@nikalsson](https://forum.freecodecamp.org/u/nikalsson)\
**Post date:** [November 26, 2019, 6:23am UTC](https://forum.freecodecamp.org/t/pomodoro-clock-test-11-fails/327320/4 "2019-11-26T06:23:13Z")

</div>

Hey rahrahrah,

I did notice earlier that you’re struggling with the same issue and was reviewing your code. It is a very similar approach and but still I couldn’t come up with any solutions.

---

<div class="post-metadata">

**Author:** ![rahrahrah](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/rahrahrah/32/126085_2.png) [@rahrahrah](https://forum.freecodecamp.org/u/rahrahrah)\
**Post date:** [November 26, 2019, 9:22pm UTC](https://forum.freecodecamp.org/t/pomodoro-clock-test-11-fails/327320/5 "2019-11-26T21:22:08Z")

</div>

Thanks for looking… I am going to make an identical pen, to fiddle with and hopefully I will figure something out. Still not certain what the issue is though.

---

<div class="post-metadata">

**Author:** ![rahrahrah](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/rahrahrah/32/126085_2.png) [@rahrahrah](https://forum.freecodecamp.org/u/rahrahrah)\
**Post date:** [November 26, 2019, 9:42pm UTC](https://forum.freecodecamp.org/t/pomodoro-clock-test-11-fails/327320/6 "2019-11-26T21:42:10Z")

</div>

Hi nikalsson,

I figured mine out… I had the placement of my subtraction wrong when adjusting the time display. I will take a peek at yours when I have some additional time this evening. Good luck!

---

<div class="post-metadata">

**Author:** ![moigithub](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/moigithub/32/128208_2.png) [@moigithub](https://forum.freecodecamp.org/u/moigithub)\
**Post date:** [November 26, 2019, 9:57pm UTC](https://forum.freecodecamp.org/t/pomodoro-clock-test-11-fails/327320/7 "2019-11-26T21:57:56Z")

</div>

for react code, i think  
[https://stackblitz.com/](https://stackblitz.com/)  
or [https://codesandbox.io/](https://codesandbox.io/)  
are better IDE

i click run on repl … it compiles but it doesnt seem to load or im missing something 🙂

---

<div class="post-metadata">

**Author:** ![nikalsson](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nikalsson/32/128297_2.png) [@nikalsson](https://forum.freecodecamp.org/u/nikalsson)\
**Post date:** [November 27, 2019, 7:46am UTC](https://forum.freecodecamp.org/t/pomodoro-clock-test-11-fails/327320/9 "2019-11-27T07:46:26Z")

</div>

rahrahrah: Thanks for the update, I’ll try to check out the time display of my project. Do you have an updated version of your code publicly available?

moigithub: For me the repl runs fine, I had problems with the stackblitz since I could not drag and drop files to there. That seems to be a common issue. But here’s my code on codesandbox: [https://codesandbox.io/s/festive-greider-6nv93?fontsize=14&hidenavigation=1&theme=dark](https://codesandbox.io/s/festive-greider-6nv93?fontsize=14&hidenavigation=1&theme=dark)

EDIT: tried a bit of modification to the code in the codesandbox. Modified the format of the #time-left but that did not solve anything.

---

<div class="post-metadata">

**Author:** ![nikalsson](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nikalsson/32/128297_2.png) [@nikalsson](https://forum.freecodecamp.org/u/nikalsson)\
**Post date:** [December 4, 2019, 10:45am UTC](https://forum.freecodecamp.org/t/pomodoro-clock-test-11-fails/327320/10 "2019-12-04T10:45:50Z")

</div>

I finally had the time and interest to look at this problem again. And now I managed to solve it as soon as I opened the file. The problem was that when I pressed the ‘Reset’ button, I did not clear the call clearInterval(this.timer). So when then the timer was reset and started again it always added new interval to tick every second. That’s why the tests were also running so very fast. I always just assumed that the tests ran very fast to speed up the testing.

Anyway the I updated my code in the codesandbox. Maybe it will be useful for someone. Link in the post above.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 16, 2021, 11:31am UTC](https://forum.freecodecamp.org/t/pomodoro-clock-test-11-fails/327320/11 "2021-01-16T11:31:19Z")

</div>

Closed on January 16, 2021, 11:31am UTC


