Commit 773c47f 1 parent 9ce830c commit 773c47f Copy full SHA for 773c47f
File tree 1 file changed +8
-2
lines changed
tests/BenchmarkDotNet.IntegrationTests
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -54,12 +54,18 @@ public void Empty() { }
54
54
55
55
public class CustomFactory : IEngineFactory
56
56
{
57
- public IEngine CreateReadyToRun ( EngineParameters engineParameters )
58
- => new CustomEngine
57
+ public IEngine CreateReadyToRun ( EngineParameters engineParameters )
58
+ {
59
+ var engine = new CustomEngine
59
60
{
60
61
GlobalCleanupAction = engineParameters . GlobalCleanupAction ,
61
62
GlobalSetupAction = engineParameters . GlobalSetupAction
62
63
} ;
64
+
65
+ engine . GlobalSetupAction ? . Invoke ( ) ; // engine factory is now supposed to create an engine which is ready to run (hence the method name change)
66
+
67
+ return engine ;
68
+ }
63
69
}
64
70
65
71
public class CustomEngine : IEngine
You can’t perform that action at this time.
0 commit comments