File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -12,20 +12,21 @@ public class BaseTest
1212 [ OneTimeSetUp ]
1313 public void EnsureInitialised ( )
1414 {
15+ TestContext . Out . WriteLine ( $ "Test architecture { RuntimeInformation . ProcessArchitecture } ") ;
16+
1517 if ( ! _initialized )
1618 {
17- var are = new AutoResetEvent ( false ) ;
19+ AutoResetEvent are = new ( false ) ;
1820 Exception ? error = null ;
19- HookEvents . HookDelegate < global ::Terraria . Main , HookEvents . Terraria . Main . DedServEventArgs > cb = ( instance , args ) =>
21+ HookEvents . HookDelegate < global ::Terraria . Main , HookEvents . Terraria . Main . DedServEventArgs > cb = ( instance , args ) =>
2022 {
2123 instance . Initialize ( ) ;
2224 are . Set ( ) ;
2325 _initialized = true ;
24- Console . WriteLine ( $ "Server init process successful for architecture { RuntimeInformation . ProcessArchitecture } ") ;
2526 } ;
2627 HookEvents . Terraria . Main . DedServ += cb ;
2728
28- global ::TerrariaApi . Server . Program . Main ( new string [ ] { } ) ;
29+ global ::TerrariaApi . Server . Program . Main ( [ ] ) ;
2930
3031 _initialized = are . WaitOne ( TimeSpan . FromSeconds ( 30 ) ) ;
3132
You can’t perform that action at this time.
0 commit comments