# Shelving unit tests

**URL:** https://www.finalbuilder.com/forums/t/shelving-unit-tests/5993
**Category:** Bugs
**Created:** [September 9, 2015, 2:49am UTC](https://www.finalbuilder.com/forums/t/shelving-unit-tests/5993 "2015-09-09T02:49:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)
#### Post date: [September 9, 2015, 2:49am UTC](https://www.finalbuilder.com/forums/t/shelving-unit-tests/5993/1 "2015-09-09T02:49:08Z")

</div>

It seems that shelving some unit tests (13 project wide in our case) lead into a stage error, so cannot run any configuration of that project anymore. If i unshelve them, it work again.  
Event log says:

```
Importance: Error
Message:

Stage Controller

Error with stage: @link(1004, 892e2da7-3bc2-44c6-a1a9-a50e00f2bf4d)[Build]. Message: Exception: InvalidOperationException
Message: Das Objekt mit Nullwert muss einen Wert haben.
Stack Trace: &nbsp; &nbsp;bei System.Nullable`1.get_Value()</span><br><span>&nbsp; &nbsp;bei Continua.Modules.Builds.Agents.ServerAgentController.<setupagentexecutioncontext>b__17(UnitTestShelve p)</setupagentexecutioncontext></span><br><span>&nbsp; &nbsp;bei System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
&nbsp; &nbsp;bei System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
&nbsp; &nbsp;bei System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
&nbsp; &nbsp;bei Continua.Modules.Builds.Agents.ServerAgentController.SetupAgentExecutionContext(Stage stage, Build build, RegisteredAgent agent, IServerAgentManager agentManager, ISession session)
&nbsp; &nbsp;bei Continua.Modules.Builds.Agents.ServerAgentController.Execute(ISession session, CancellationToken cancellationToken, Action action, Stage stage, BuildLogWriter buildLogWriter, String& errorMessage, Result& initWorkspaceResult, String& agentHostName)
&nbsp; &nbsp;bei Continua.Modules.Builds.BuildRunner.ExecuteActions(ISession session, Stage stage, BuildLogWriter writer, Result& initWorkspaceResult)
```

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [September 10, 2015, 8:36am UTC](https://www.finalbuilder.com/forums/t/shelving-unit-tests/5993/2 "2015-09-10T08:36:55Z")

</div>

Hi Christian,  
  
Thank you for reporting this. We have reproduced the error and confirm that this bug which occurs if you shelve a whole fixture or namespace rather than individual test. We are working on a fix and hope to get that to you tomorrow.  
  
  
&nbsp;

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [September 11, 2015, 9:38am UTC](https://www.finalbuilder.com/forums/t/shelving-unit-tests/5993/3 "2015-09-11T09:38:19Z")

</div>

Hi Christian,  
  
The following build contains a fix for this issue.  
  

- [Continua CI (64-bit) v1.7.0.135](http://downloads.finalbuilder.com/downloads/continua/1.7/ContinuaCI.Server.Setup_x64_1.7.0.135.exe)
- [Continua CI Agent (64-bit) v1.7.0.135](http://downloads.finalbuilder.com/downloads/continua/1.7/ContinuaCI.Agent.Setup_x64_1.7.0.135.exe)
- [Continua CI (32-bit) v1.7.0.135](http://downloads.finalbuilder.com/downloads/continua/1.7/ContinuaCI.Server.Setup_1.7.0.135.exe)
- [Continua CI Agent (32-bit) v1.7.0.135](http://downloads.finalbuilder.com/downloads/continua/1.7/ContinuaCI.Agent.Setup_1.7.0.135.exe)

  
We plan to release a official version including this and some additional fixes next week.
