File tree 8 files changed +37
-10
lines changed
8 files changed +37
-10
lines changed Original file line number Diff line number Diff line change 20
20
path : |
21
21
~/.nuget/packages
22
22
~/AppData/Local/NuGet/v3-cache
23
- key : ${{ runner.os }}-v1 -nuget-${{ hashFiles('**/*.csproj') }}
23
+ key : ${{ runner.os }}-v2 -nuget-${{ hashFiles('**/*.csproj','projects/Directory.Packages.props ') }}
24
24
restore-keys : |
25
- ${{ runner.os }}-v1 -nuget-
25
+ ${{ runner.os }}-v2 -nuget-
26
26
- name : Build (Debug)
27
27
run : dotnet build ${{ github.workspace }}\Build.csproj
28
28
- name : Verify
@@ -142,9 +142,9 @@ jobs:
142
142
path : |
143
143
~/.nuget/packages
144
144
~/.local/share/NuGet/v3-cache
145
- key : ${{ runner.os }}-v1 -nuget-${{ hashFiles('**/*.csproj') }}
145
+ key : ${{ runner.os }}-v2 -nuget-${{ hashFiles('**/*.csproj','projects/Directory.Packages.props ') }}
146
146
restore-keys : |
147
- ${{ runner.os }}-v1 -nuget-
147
+ ${{ runner.os }}-v2 -nuget-
148
148
- name : Build (Debug)
149
149
run : dotnet build ${{ github.workspace }}/Build.csproj
150
150
- name : Verify
Original file line number Diff line number Diff line change 16
16
-->
17
17
<PackageVersion Include =" System.IO.Pipelines" Version =" 8.0.0" />
18
18
<PackageVersion Include =" System.Net.Http" Version =" 4.3.4" />
19
+ <PackageVersion Include =" System.Text.Json" Version =" 8.0.5" />
20
+ <PackageVersion Include =" System.Text.RegularExpressions" Version =" 4.3.1" />
19
21
<PackageVersion Include =" System.Threading.RateLimiting" Version =" 8.0.0" />
20
22
<PackageVersion Include =" WireMock.Net" Version =" 1.5.62" />
21
23
<PackageVersion Include =" xunit" Version =" 2.9.0" />
33
35
<PackageVersion Include =" System.Diagnostics.DiagnosticSource" Version =" 8.0.1" />
34
36
<PackageVersion Include =" System.Memory" Version =" 4.5.5" />
35
37
<PackageVersion Include =" System.Threading.Channels" Version =" 8.0.0" />
36
- <PackageVersion Include =" System.Text.Json" Version =" 8.0.5" />
37
38
<PackageVersion Include =" System.Net.Http.Json" Version =" 8.0.1" />
38
39
<PackageVersion Include =" Microsoft.Bcl.AsyncInterfaces" Version =" 8.0.0" />
39
40
</ItemGroup >
40
- <ItemGroup Condition =" $(TargetFramework)=='net472'" >
41
- <PackageVersion Include =" System.Text.Json" Version =" 8.0.5" />
42
- </ItemGroup >
43
41
<ItemGroup Condition =" '$(TargetFrameworkIdentifier)' == '.NETFramework'" >
44
42
<GlobalPackageReference Include =" Microsoft.NETFramework.ReferenceAssemblies" Version =" 1.0.3" />
45
43
</ItemGroup >
Original file line number Diff line number Diff line change 26
26
</ItemGroup >
27
27
28
28
<ItemGroup >
29
+ <PackageReference Include =" System.Text.Json" />
29
30
<PackageReference Include =" EasyNetQ.Management.Client" />
30
31
<PackageReference Include =" xunit" />
31
32
<PackageReference Include =" xunit.abstractions" />
Original file line number Diff line number Diff line change 39
39
-->
40
40
41
41
<ItemGroup >
42
+ <PackageReference Include =" System.Text.Json" />
42
43
<PackageReference Include =" Microsoft.NET.Test.Sdk" />
43
44
<PackageReference Include =" xunit" />
44
45
<PackageReference Include =" xunit.runner.visualstudio" PrivateAssets =" all" />
Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ public async Task TestConcurrentExchangeDeclareAndDelete()
112
112
var exchangeNames = new ConcurrentBag < string > ( ) ;
113
113
var tasks = new List < Task > ( ) ;
114
114
NotSupportedException nse = null ;
115
+ Exception unexpectedException = null ;
115
116
for ( int i = 0 ; i < 256 ; i ++ )
116
117
{
117
118
var t = Task . Run ( async ( ) =>
@@ -129,13 +130,24 @@ public async Task TestConcurrentExchangeDeclareAndDelete()
129
130
{
130
131
nse = e ;
131
132
}
133
+ catch ( Exception ex )
134
+ {
135
+ unexpectedException = ex ;
136
+ }
132
137
} ) ;
133
138
tasks . Add ( t ) ;
134
139
}
135
140
136
141
await Task . WhenAll ( tasks ) ;
137
142
138
- Assert . Null ( nse ) ;
143
+ if ( nse is not null )
144
+ {
145
+ Assert . Fail ( $ "got unexpected NotSupportedException: { nse } ") ;
146
+ }
147
+ if ( unexpectedException is not null )
148
+ {
149
+ Assert . Fail ( $ "got unexpected Exception: { unexpectedException } ") ;
150
+ }
139
151
tasks . Clear ( ) ;
140
152
141
153
foreach ( string exchangeName in exchangeNames )
@@ -154,13 +166,24 @@ public async Task TestConcurrentExchangeDeclareAndDelete()
154
166
{
155
167
nse = e ;
156
168
}
169
+ catch ( Exception ex )
170
+ {
171
+ unexpectedException = ex ;
172
+ }
157
173
} ) ;
158
174
tasks . Add ( t ) ;
159
175
}
160
176
161
177
await Task . WhenAll ( tasks ) ;
162
178
163
- Assert . Null ( nse ) ;
179
+ if ( nse is not null )
180
+ {
181
+ Assert . Fail ( $ "got unexpected NotSupportedException: { nse } ") ;
182
+ }
183
+ if ( unexpectedException is not null )
184
+ {
185
+ Assert . Fail ( $ "got unexpected Exception: { unexpectedException } ") ;
186
+ }
164
187
}
165
188
}
166
189
}
Original file line number Diff line number Diff line change 28
28
29
29
<ItemGroup >
30
30
<PackageReference Include =" Microsoft.NET.Test.Sdk" />
31
+ <PackageReference Include =" System.Text.RegularExpressions" />
31
32
<PackageReference Include =" xunit" />
32
33
<PackageReference Include =" xunit.runner.visualstudio" PrivateAssets =" all" />
33
34
<PackageReference Include =" System.Net.Http" />
Original file line number Diff line number Diff line change 17
17
<SignAssembly >true</SignAssembly >
18
18
<IsTestProject >true</IsTestProject >
19
19
<LangVersion >12.0</LangVersion >
20
+ <TestTfmsInParallel >false</TestTfmsInParallel >
20
21
</PropertyGroup >
21
22
22
23
<ItemGroup >
38
39
</ItemGroup >
39
40
40
41
<ItemGroup >
42
+ <PackageReference Include =" System.Text.Json" />
41
43
<PackageReference Include =" Microsoft.NET.Test.Sdk" />
42
44
<PackageReference Include =" OpenTelemetry.Exporter.InMemory" />
43
45
<PackageReference Include =" xunit" />
Original file line number Diff line number Diff line change 24
24
</ItemGroup >
25
25
26
26
<ItemGroup >
27
+ <PackageReference Include =" System.Text.Json" />
27
28
<PackageReference Include =" Microsoft.NET.Test.Sdk" />
28
29
<PackageReference Include =" xunit" />
29
30
<PackageReference Include =" xunit.runner.visualstudio" PrivateAssets =" all" />
You can’t perform that action at this time.
0 commit comments