This is a question of having too many SOQL queries as part of the trigger. I'm guessing that you have a non-Chatter Swarm trigger operating as well and it is using some SOQL queries as part of this. IIRC, ChatterSwarm is fairly optimized for queries but does still use several. You might need to take a detailed look at the code to see which apps are using how many queries and adjust your code.
Tests can fail for a few reasons. Many times Apex tests fail b/c they create sample data which doesn't match the orgs validation rules. This might be true here. So, for example, if you require some field on your opportunity and have a custom validation rule configured, that can cause the Apex Test to fail.
You can actually create a log of your app which will tell you -- in great detail -- what is happening, what processes are using how many SOQL queries, etc. Search Help under "system log" for details.
Make sure that you have feed tracking for Opportunities and Cases. To do this, go to Setup | App Setup | Customize | Chatter | Feed Tracking and for Cases and Opportunities make sure to check "Enable Feed Tracking" and save.
This is a question of having too many SOQL queries as part of the trigger. I'm guessing that you have a non-Chatter Swarm trigger operating as well and it is using some SOQL queries as part of this. IIRC, ChatterSwarm is fairly optimized for queries but does still use several. You might need to take a detailed look at the code to see which apps are using how many queries and adjust your code.
HTH.
I run the test and this is the result:
Summary
I dont know how to troubleshoot this, maybe I will delete it.
Tests can fail for a few reasons. Many times Apex tests fail b/c they create sample data which doesn't match the orgs validation rules. This might be true here. So, for example, if you require some field on your opportunity and have a custom validation rule configured, that can cause the Apex Test to fail.
You can actually create a log of your app which will tell you -- in great detail -- what is happening, what processes are using how many SOQL queries, etc. Search Help under "system log" for details.
Make sure that you have feed tracking for Opportunities and Cases. To do this, go to Setup | App Setup | Customize | Chatter | Feed Tracking and for Cases and Opportunities make sure to check "Enable Feed Tracking" and save.
cK