@@ -110,7 +110,7 @@ public async void Create_Stream_With_Max_Length_Maximum_Value()
110
110
var stream = Guid . NewGuid ( ) . ToString ( ) ;
111
111
var config = new StreamSystemConfig ( ) ;
112
112
var system = await StreamSystem . Create ( config ) ;
113
- var spec = new StreamSpec ( stream ) { MaxLengthBytes = ulong . MaxValue } ;
113
+ var spec = new StreamSpec ( stream ) { MaxLengthBytes = ulong . MaxValue } ;
114
114
await system . CreateStream ( spec ) ;
115
115
Assert . Equal ( ulong . MaxValue . ToString ( ) , spec . Args [ "max-length-bytes" ] ) ;
116
116
await system . DeleteStream ( stream ) ;
@@ -144,7 +144,7 @@ public async void StreamStatus()
144
144
[ Fact ]
145
145
public async void CreateSystemThrowsWhenVirtualHostFailureAccess ( )
146
146
{
147
- var config = new StreamSystemConfig { VirtualHost = "DOES_NOT_EXIST" } ;
147
+ var config = new StreamSystemConfig { VirtualHost = "DOES_NOT_EXIST" } ;
148
148
await Assert . ThrowsAsync < VirtualHostAccessFailureException > (
149
149
async ( ) => { await StreamSystem . Create ( config ) ; }
150
150
) ;
@@ -153,7 +153,7 @@ await Assert.ThrowsAsync<VirtualHostAccessFailureException>(
153
153
[ Fact ]
154
154
public async void CreateSystemThrowsWhenAuthenticationAccess ( )
155
155
{
156
- var config = new StreamSystemConfig { UserName = "user_does_not_exist" } ;
156
+ var config = new StreamSystemConfig { UserName = "user_does_not_exist" } ;
157
157
await Assert . ThrowsAsync < AuthenticationFailureException > (
158
158
async ( ) => { await StreamSystem . Create ( config ) ; }
159
159
) ;
@@ -185,10 +185,10 @@ public async void CreateExistStreamPreconditionFailShouldRaiseExceptions()
185
185
var stream = Guid . NewGuid ( ) . ToString ( ) ;
186
186
var config = new StreamSystemConfig ( ) ;
187
187
var system = await StreamSystem . Create ( config ) ;
188
- await system . CreateStream ( new StreamSpec ( stream ) { MaxLengthBytes = 20 , } ) ;
188
+ await system . CreateStream ( new StreamSpec ( stream ) { MaxLengthBytes = 20 , } ) ;
189
189
190
190
await Assert . ThrowsAsync < CreateStreamException > (
191
- async ( ) => { await system . CreateStream ( new StreamSpec ( stream ) { MaxLengthBytes = 10000 , } ) ; }
191
+ async ( ) => { await system . CreateStream ( new StreamSpec ( stream ) { MaxLengthBytes = 10000 , } ) ; }
192
192
) ;
193
193
await system . DeleteStream ( stream ) ;
194
194
await system . Close ( ) ;
@@ -250,13 +250,12 @@ public async void ValidateSalsExternalConfiguration()
250
250
{
251
251
// the user can set the SALs configuration externally
252
252
// this test validates that the configuration is supported by the server
253
- var config = new StreamSystemConfig ( ) { AuthMechanism = AuthMechanism . External } ;
253
+ var config = new StreamSystemConfig ( ) { AuthMechanism = AuthMechanism . External } ;
254
254
await Assert . ThrowsAsync < AuthMechanismNotSupportedException > (
255
255
async ( ) => { await StreamSystem . Create ( config ) ; }
256
256
) ;
257
257
}
258
258
259
-
260
259
[ Fact ]
261
260
public async void CloseProducerConsumerAfterForceCloseShouldNotRaiseError ( )
262
261
{
@@ -270,10 +269,10 @@ public async void CloseProducerConsumerAfterForceCloseShouldNotRaiseError()
270
269
var system = await StreamSystem . Create ( config ) ;
271
270
await system . CreateStream ( new StreamSpec ( stream ) ) ;
272
271
var producer =
273
- await system . CreateRawProducer ( new RawProducerConfig ( stream ) { ClientProvidedName = clientProvidedName } ) ;
272
+ await system . CreateRawProducer ( new RawProducerConfig ( stream ) { ClientProvidedName = clientProvidedName } ) ;
274
273
SystemUtils . Wait ( ) ;
275
274
var consumer = await system . CreateRawConsumer (
276
- new RawConsumerConfig ( stream ) { ClientProvidedName = clientProvidedName } ) ;
275
+ new RawConsumerConfig ( stream ) { ClientProvidedName = clientProvidedName } ) ;
277
276
SystemUtils . Wait ( ) ;
278
277
279
278
// Here we have to wait the management stats refresh time before killing the connections.
@@ -297,7 +296,7 @@ public async void SetHeartBeat()
297
296
{
298
297
// Just test the heartbeat setting
299
298
// TODO find a smarter way to test the heartbeat disconnection
300
- var config = new StreamSystemConfig ( ) { Heartbeat = TimeSpan . FromMinutes ( 1 ) , } ;
299
+ var config = new StreamSystemConfig ( ) { Heartbeat = TimeSpan . FromMinutes ( 1 ) , } ;
301
300
var system = await StreamSystem . Create ( config ) ;
302
301
var stream = Guid . NewGuid ( ) . ToString ( ) ;
303
302
await system . CreateStream ( new StreamSpec ( stream ) ) ;
0 commit comments