Skip to content

Commit e446d4c

Browse files
Updated integration tests
1 parent 88d258a commit e446d4c

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

test/Lsp.Integration.Tests/LanguageServerConfigurationTests.cs

+11-11
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public LanguageServerConfigurationTests(ITestOutputHelper outputHelper) : base(n
3232
{
3333
}
3434

35-
[RetryFact]
35+
[Fact]
3636
public async Task Should_Not_Support_Configuration_It_Not_Configured()
3737
{
3838
var (_, server, configuration) = await InitializeWithConfiguration(ConfigureClient, o => { });
@@ -46,7 +46,7 @@ public async Task Should_Not_Support_Configuration_It_Not_Configured()
4646
server.Configuration.AsEnumerable().Should().BeEmpty();
4747
}
4848

49-
[RetryFact]
49+
[Fact]
5050
public async Task Should_Allow_Null_Response()
5151
{
5252
var (client, server) = await Initialize(
@@ -60,7 +60,7 @@ public async Task Should_Allow_Null_Response()
6060
a.Should().NotThrow();
6161
}
6262

63-
[RetryFact]
63+
[Fact]
6464
public async Task Should_Update_Configuration_On_Server()
6565
{
6666
var (_, server, configuration) = await InitializeWithConfiguration(ConfigureClient, ConfigureServer);
@@ -75,7 +75,7 @@ public async Task Should_Update_Configuration_On_Server()
7575
server.Configuration["othersection:value"].Should().Be("key");
7676
}
7777

78-
[RetryFact]
78+
[Fact]
7979
public async Task Should_Update_Configuration_On_Server_After_Starting()
8080
{
8181
var (_, server, configuration) = await InitializeWithConfiguration(ConfigureClient, options => {});
@@ -91,7 +91,7 @@ public async Task Should_Update_Configuration_On_Server_After_Starting()
9191
server.Configuration["othersection:value"].Should().Be("key");
9292
}
9393

94-
[RetryFact]
94+
[Fact]
9595
public async Task Should_Update_Configuration_Should_Stop_Watching_Sections()
9696
{
9797
var (_, server, configuration) = await InitializeWithConfiguration(ConfigureClient, ConfigureServer);
@@ -113,7 +113,7 @@ public async Task Should_Update_Configuration_Should_Stop_Watching_Sections()
113113
server.Configuration["othersection:value"].Should().BeNull();
114114
}
115115

116-
[RetryFact]
116+
[Fact]
117117
public async Task Should_Update_Scoped_Configuration()
118118
{
119119
var (_, server, configuration) = await InitializeWithConfiguration(ConfigureClient, ConfigureServer);
@@ -135,7 +135,7 @@ public async Task Should_Update_Scoped_Configuration()
135135
scopedConfiguration["othersection:value"].Should().Be("scopedkey");
136136
}
137137

138-
[RetryFact]
138+
[Fact]
139139
public async Task Should_Fallback_To_Original_Configuration()
140140
{
141141
var (_, server, configuration) = await InitializeWithConfiguration(ConfigureClient, ConfigureServer);
@@ -167,7 +167,7 @@ public async Task Should_Fallback_To_Original_Configuration()
167167
scopedConfiguration["othersection:value"].Should().Be("key");
168168
}
169169

170-
[RetryFact]
170+
[Fact]
171171
public async Task Should_Only_Update_Configuration_Items_That_Are_Defined()
172172
{
173173
var (_, server, configuration) = await InitializeWithConfiguration(ConfigureClient, ConfigureServer);
@@ -185,7 +185,7 @@ public async Task Should_Only_Update_Configuration_Items_That_Are_Defined()
185185
server.Configuration["notmysection:key"].Should().BeNull();
186186
}
187187

188-
[RetryFact]
188+
[Fact]
189189
public async Task Should_Support_Configuration_Binding()
190190
{
191191
var (_, server, configuration) = await InitializeWithConfiguration(ConfigureClient, ConfigureServer);
@@ -209,7 +209,7 @@ public async Task Should_Support_Configuration_Binding()
209209
data.Port.Should().Be(80);
210210
}
211211

212-
[RetryFact]
212+
[Fact]
213213
public async Task Should_Support_Options()
214214
{
215215
var (_, server, configuration) = await InitializeWithConfiguration(ConfigureClient, options => {
@@ -234,7 +234,7 @@ public async Task Should_Support_Options()
234234
options.Value.Port.Should().Be(443);
235235
}
236236

237-
[RetryFact]
237+
[Fact]
238238
public async Task Should_Support_Options_Monitor()
239239
{
240240
var (_, server, configuration) = await InitializeWithConfiguration(ConfigureClient, options => {

test/Lsp.Integration.Tests/LanguageServerLoggingTests.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public LanguageServerLoggingTests(ITestOutputHelper outputHelper) : base(new Jso
2525
{
2626
}
2727

28-
[RetryFact]
28+
[Fact]
2929
public async Task Logs_Are_Sent_To_Client_From_Server()
3030
{
3131
var logs = new ConcurrentBag<LogMessageParams>();
@@ -64,7 +64,7 @@ public async Task Logs_Are_Sent_To_Client_From_Server()
6464
items.Where(z => z.Type == MessageType.Log).Should().HaveCount(2);
6565
}
6666

67-
[RetryFact]
67+
[Fact]
6868
public async Task Logs_Are_Sent_To_Client_From_Server_Respecting_SetMinimumLevel()
6969
{
7070
var logs = new ConcurrentBag<LogMessageParams>();
@@ -103,7 +103,7 @@ public async Task Logs_Are_Sent_To_Client_From_Server_Respecting_SetMinimumLevel
103103
items.Where(z => z.Type == MessageType.Log).Should().HaveCount(0);
104104
}
105105

106-
[RetryFact]
106+
[Fact]
107107
public async Task Logs_Are_Sent_To_Client_From_Server_Respecting_TraceLevel()
108108
{
109109
var logs = new ConcurrentBag<LogMessageParams>();
@@ -142,7 +142,7 @@ public async Task Logs_Are_Sent_To_Client_From_Server_Respecting_TraceLevel()
142142
items.Where(z => z.Type == MessageType.Log).Should().HaveCount(0);
143143
}
144144

145-
[RetryFact]
145+
[Fact]
146146
public async Task Client_Can_Dynamically_Change_Server_Trace_Level_Off_To_Verbose()
147147
{
148148
var logs = new ConcurrentBag<LogMessageParams>();
@@ -209,7 +209,7 @@ public async Task Client_Can_Dynamically_Change_Server_Trace_Level_Off_To_Verbos
209209
}
210210
}
211211

212-
[RetryFact]
212+
[Fact]
213213
public async Task Client_Can_Dynamically_Change_Server_Trace_Level_Verbose_To_Off()
214214
{
215215
var logs = new ConcurrentBag<LogMessageParams>();

test/Lsp.Integration.Tests/ProgressTests.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ private class Data
2828
public string Value { get; set; } = "Value";
2929
}
3030

31-
[RetryFact]
31+
[Fact]
3232
public async Task Should_Send_Progress_From_Server_To_Client()
3333
{
3434
var token = new ProgressToken(Guid.NewGuid().ToString());
@@ -78,7 +78,7 @@ await Observable.Create<Unit>(
7878
data.Should().ContainInOrder(new[] { "1", "3", "2", "4", "5" });
7979
}
8080

81-
[RetryFact]
81+
[Fact]
8282
public async Task Should_Send_Progress_From_Client_To_Server()
8383
{
8484
var token = new ProgressToken(Guid.NewGuid().ToString());
@@ -131,14 +131,14 @@ await Observable.Create<Unit>(
131131
data.Should().ContainInOrder(new[] { "1", "3", "2", "4", "5" });
132132
}
133133

134-
[RetryFact]
134+
[Fact]
135135
public void WorkDone_Should_Be_Supported()
136136
{
137137
Server.WorkDoneManager.IsSupported.Should().BeTrue();
138138
Client.WorkDoneManager.IsSupported.Should().BeTrue();
139139
}
140140

141-
[RetryFact]
141+
[Fact]
142142
public async Task Should_Support_Creating_Work_Done_From_Sever_To_Client()
143143
{
144144
var token = new ProgressToken(Guid.NewGuid().ToString());
@@ -200,7 +200,7 @@ public async Task Should_Support_Creating_Work_Done_From_Sever_To_Client()
200200
results.Should().ContainInOrder("Begin", "Report 1", "Report 2", "Report 3", "Report 4", "End");
201201
}
202202

203-
[RetryFact]
203+
[Fact]
204204
public async Task Should_Support_Observing_Work_Done_From_Client_To_Server_Request()
205205
{
206206
var token = new ProgressToken(Guid.NewGuid().ToString());
@@ -262,7 +262,7 @@ public async Task Should_Support_Observing_Work_Done_From_Client_To_Server_Reque
262262
results.Should().ContainInOrder("Begin", "Report 1", "Report 2", "Report 3", "Report 4", "End");
263263
}
264264

265-
[RetryFact]
265+
[Fact]
266266
public async Task Should_Support_Cancelling_Work_Done_From_Client_To_Server_Request()
267267
{
268268
var token = new ProgressToken(Guid.NewGuid().ToString());

0 commit comments

Comments
 (0)