Skip to content

Commit 08e4ab1

Browse files
retry facts for a few things
1 parent fde9d1c commit 08e4ab1

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

test/Lsp.Tests/Integration/LanguageServerLoggingTests.cs

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

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

66-
[Fact]
66+
[RetryFact]
6767
public async Task Logs_Are_Sent_To_Client_From_Server_Respecting_SetMinimumLevel()
6868
{
6969
var logs = new ConcurrentBag<LogMessageParams>();
@@ -101,7 +101,7 @@ public async Task Logs_Are_Sent_To_Client_From_Server_Respecting_SetMinimumLevel
101101
items.Where(z => z.Type == MessageType.Log).Should().HaveCount(0);
102102
}
103103

104-
[Fact]
104+
[RetryFact]
105105
public async Task Logs_Are_Sent_To_Client_From_Server_Respecting_TraceLevel()
106106
{
107107
var logs = new ConcurrentBag<LogMessageParams>();
@@ -139,7 +139,7 @@ public async Task Logs_Are_Sent_To_Client_From_Server_Respecting_TraceLevel()
139139
items.Where(z => z.Type == MessageType.Log).Should().HaveCount(0);
140140
}
141141

142-
[Fact]
142+
[RetryFact]
143143
public async Task Client_Can_Dynamically_Change_Server_Trace_Level_Off_To_Verbose()
144144
{
145145
var logs = new ConcurrentBag<LogMessageParams>();
@@ -204,7 +204,7 @@ public async Task Client_Can_Dynamically_Change_Server_Trace_Level_Off_To_Verbos
204204
}
205205
}
206206

207-
[Fact]
207+
[RetryFact]
208208
public async Task Client_Can_Dynamically_Change_Server_Trace_Level_Verbose_To_Off()
209209
{
210210
var logs = new ConcurrentBag<LogMessageParams>();

test/Lsp.Tests/Integration/RequestCancellationTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public RequestCancellationTests(ITestOutputHelper outputHelper) : base(new JsonR
2626
{
2727
}
2828

29-
[Fact]
29+
[RetryFact]
3030
public async Task Should_Cancel_Pending_Requests()
3131
{
3232
var (client, _) = await Initialize(ConfigureClient, ConfigureServer);
@@ -43,7 +43,7 @@ public async Task Should_Cancel_Pending_Requests()
4343
action.Should().Throw<TaskCanceledException>();
4444
}
4545

46-
[Fact]
46+
[RetryFact]
4747
public async Task Should_Abandon_Pending_Requests_For_Text_Changes()
4848
{
4949
var (client, _) = await Initialize(ConfigureClient, ConfigureServer);
@@ -68,7 +68,7 @@ public async Task Should_Abandon_Pending_Requests_For_Text_Changes()
6868
action.Should().Throw<ContentModifiedException>();
6969
}
7070

71-
[Fact]
71+
[RetryFact]
7272
public async Task Should_Cancel_Requests_After_Timeout()
7373
{
7474
Func<Task> action = async () => {
@@ -88,7 +88,7 @@ await client.TextDocument.RequestCompletion(
8888
action.Should().Throw<RequestCancelledException>();
8989
}
9090

91-
[Fact]
91+
[RetryFact]
9292
public void Should_Cancel_Requests_After_Timeout_without_Content_Modified()
9393
{
9494
Func<Task> action = async () => {
@@ -108,7 +108,7 @@ await client.TextDocument.RequestCompletion(
108108
action.Should().Throw<RequestCancelledException>();
109109
}
110110

111-
[Fact]
111+
[RetryFact]
112112
public async Task Can_Publish_Diagnostics_Delayed()
113113
{
114114
var (_, server) = await Initialize(

0 commit comments

Comments
 (0)