# Testing with childworkflow

**URL:** <https://community.temporal.io/t/testing-with-childworkflow/2552>\
**Category:** Community Support\
**Tags:** go-sdk\
**Created:** [July 13, 2021, 12:58pm UTC](https://community.temporal.io/t/testing-with-childworkflow/2552 "2021-07-13T12:58:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonsve](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/jonsve/32/1626_2.png) [@jonsve](https://community.temporal.io/u/jonsve)\
**Post date:** [July 13, 2021, 12:58pm UTC](https://community.temporal.io/t/testing-with-childworkflow/2552/1 "2021-07-13T12:58:12Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/2X/a/a7e193a46c7c38e718e26c7fc056b2a9ab2ec154.png)

I have a workflow that waits for signals and starts childworkflows as a reaction to a signal. I’m trying to write tests for this but am unable. I tried mocking with _OnWorkflow_ but I get the same issue. Is there any good solution for this ?

This is my test:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/2X/3/38ab93cc4a41ed59f8e22142bb7be958c59db599.png)

This is the workflow:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/2X/2/2434484746d08344c5cb53b0e513cb63dacfcb60.png)

---

<div class="post-metadata">

**Author:** ![jonsve](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/jonsve/32/1626_2.png) [@jonsve](https://community.temporal.io/u/jonsve)\
**Post date:** [July 13, 2021, 1:31pm UTC](https://community.temporal.io/t/testing-with-childworkflow/2552/2 "2021-07-13T13:31:21Z")

</div>

nvm solved it by  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/2X/8/8ded8f00ae4ba35b5063004a09808057038064d3.png)
