Skip to content

Commit 616cb81

Browse files
committed
formatting
Signed-off-by: Gabriele Santomaggio <[email protected]>
1 parent 5a19077 commit 616cb81

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

Tests/SystemTests.cs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public async void Create_Stream_With_Max_Length_Maximum_Value()
110110
var stream = Guid.NewGuid().ToString();
111111
var config = new StreamSystemConfig();
112112
var system = await StreamSystem.Create(config);
113-
var spec = new StreamSpec(stream) {MaxLengthBytes = ulong.MaxValue};
113+
var spec = new StreamSpec(stream) { MaxLengthBytes = ulong.MaxValue };
114114
await system.CreateStream(spec);
115115
Assert.Equal(ulong.MaxValue.ToString(), spec.Args["max-length-bytes"]);
116116
await system.DeleteStream(stream);
@@ -144,7 +144,7 @@ public async void StreamStatus()
144144
[Fact]
145145
public async void CreateSystemThrowsWhenVirtualHostFailureAccess()
146146
{
147-
var config = new StreamSystemConfig {VirtualHost = "DOES_NOT_EXIST"};
147+
var config = new StreamSystemConfig { VirtualHost = "DOES_NOT_EXIST" };
148148
await Assert.ThrowsAsync<VirtualHostAccessFailureException>(
149149
async () => { await StreamSystem.Create(config); }
150150
);
@@ -153,7 +153,7 @@ await Assert.ThrowsAsync<VirtualHostAccessFailureException>(
153153
[Fact]
154154
public async void CreateSystemThrowsWhenAuthenticationAccess()
155155
{
156-
var config = new StreamSystemConfig {UserName = "user_does_not_exist"};
156+
var config = new StreamSystemConfig { UserName = "user_does_not_exist" };
157157
await Assert.ThrowsAsync<AuthenticationFailureException>(
158158
async () => { await StreamSystem.Create(config); }
159159
);
@@ -185,10 +185,10 @@ public async void CreateExistStreamPreconditionFailShouldRaiseExceptions()
185185
var stream = Guid.NewGuid().ToString();
186186
var config = new StreamSystemConfig();
187187
var system = await StreamSystem.Create(config);
188-
await system.CreateStream(new StreamSpec(stream) {MaxLengthBytes = 20,});
188+
await system.CreateStream(new StreamSpec(stream) { MaxLengthBytes = 20, });
189189

190190
await Assert.ThrowsAsync<CreateStreamException>(
191-
async () => { await system.CreateStream(new StreamSpec(stream) {MaxLengthBytes = 10000,}); }
191+
async () => { await system.CreateStream(new StreamSpec(stream) { MaxLengthBytes = 10000, }); }
192192
);
193193
await system.DeleteStream(stream);
194194
await system.Close();
@@ -250,13 +250,12 @@ public async void ValidateSalsExternalConfiguration()
250250
{
251251
// the user can set the SALs configuration externally
252252
// 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 };
254254
await Assert.ThrowsAsync<AuthMechanismNotSupportedException>(
255255
async () => { await StreamSystem.Create(config); }
256256
);
257257
}
258258

259-
260259
[Fact]
261260
public async void CloseProducerConsumerAfterForceCloseShouldNotRaiseError()
262261
{
@@ -270,10 +269,10 @@ public async void CloseProducerConsumerAfterForceCloseShouldNotRaiseError()
270269
var system = await StreamSystem.Create(config);
271270
await system.CreateStream(new StreamSpec(stream));
272271
var producer =
273-
await system.CreateRawProducer(new RawProducerConfig(stream) {ClientProvidedName = clientProvidedName});
272+
await system.CreateRawProducer(new RawProducerConfig(stream) { ClientProvidedName = clientProvidedName });
274273
SystemUtils.Wait();
275274
var consumer = await system.CreateRawConsumer(
276-
new RawConsumerConfig(stream) {ClientProvidedName = clientProvidedName});
275+
new RawConsumerConfig(stream) { ClientProvidedName = clientProvidedName });
277276
SystemUtils.Wait();
278277

279278
// Here we have to wait the management stats refresh time before killing the connections.
@@ -297,7 +296,7 @@ public async void SetHeartBeat()
297296
{
298297
// Just test the heartbeat setting
299298
// 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), };
301300
var system = await StreamSystem.Create(config);
302301
var stream = Guid.NewGuid().ToString();
303302
await system.CreateStream(new StreamSpec(stream));

0 commit comments

Comments
 (0)