Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit e464e46

Browse files
committed
Fix tests on .NET Core
Test Count: 790, Passed: 691, Failed: 17, Inconclusive: 0, Skipped: 82
1 parent 8e47f56 commit e464e46

File tree

3 files changed

+21
-19
lines changed

3 files changed

+21
-19
lines changed

src/ServiceStack.Redis.NetCore/ServiceStack.Redis/project.json

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,30 @@
1717
"System.Runtime.Serialization.Formatters": "4.0.0-*",
1818
"ServiceStack.Interfaces" : "4.0.*",
1919
"ServiceStack.Text" : "4.0.*",
20-
"ServiceStack.Common" : "4.0.*",
20+
"ServiceStack.Common" : "4.0.*"
2121
},
2222
"compile": ["../../ServiceStack.Redis/**/*.cs"],
2323
"exclude": ["../../ServiceStack.Redis/RedisPipeline.cs"],
2424
"frameworks": {
2525
"netstandard1.3": {
2626
"dependencies" : {
27-
"System.Linq.Expressions" : "4.1.0",
28-
"System.Runtime.Serialization.Primitives" : "4.1.1-*",
29-
"System.Runtime.Serialization.Xml" : "4.1.1",
30-
"System.Net.Http" : "4.1.0",
31-
"System.Net.Requests" : "4.0.11",
32-
"System.Net.Security" : "4.0.0",
33-
"System.IO" : "4.1.0",
34-
"System.Dynamic.Runtime" : "4.0.11",
35-
"Microsoft.CSharp" : "4.0.1-*",
36-
"System.Reflection": "4.1.0-*",
37-
"System.Reflection.Extensions" : "4.0.1",
38-
"System.Reflection.Emit" : "4.0.1",
39-
"System.Reflection.Emit.Lightweight": "4.0.1",
40-
"System.Collections.Specialized": "4.0.1",
41-
"System.Collections.NonGeneric": "4.0.1",
42-
"System.Security.Cryptography.Algorithms" : "4.2.0"
27+
"System.Linq.Expressions" : "4.1.0",
28+
"System.Runtime.Serialization.Primitives" : "4.1.1-*",
29+
"System.Runtime.Serialization.Xml" : "4.1.1",
30+
"System.Net.Http" : "4.1.0",
31+
"System.Net.Requests" : "4.0.11",
32+
"System.Net.Security" : "4.0.0",
33+
"System.IO" : "4.1.0",
34+
"System.Dynamic.Runtime" : "4.0.11",
35+
"Microsoft.CSharp" : "4.0.1-*",
36+
"System.Reflection": "4.1.0-*",
37+
"System.Reflection.Extensions" : "4.0.1",
38+
"System.Reflection.Emit" : "4.0.1",
39+
"System.Reflection.Emit.Lightweight": "4.0.1",
40+
"System.Collections.Specialized": "4.0.1",
41+
"System.Collections.NonGeneric": "4.0.1",
42+
"System.Security.Cryptography.Algorithms" : "4.2.0",
43+
"System.Net.NameResolution" : "4.0.0"
4344
}
4445
}
4546

src/ServiceStack.Redis/RedisNativeClient_Utils.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ private void Connect()
8484
try
8585
{
8686
#if NETSTANDARD
87-
socket.Connect(Host, Port);
87+
var addresses = Dns.GetHostAddressesAsync(Host).Result;
88+
socket.Connect(addresses[0], Port);
8889
#else
8990
if (ConnectTimeout <= 0)
9091
{

tests/ServiceStack.Redis.Tests/LicenseUsageTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public void SetUp()
2525
public void TearDown()
2626
{
2727
#if NETCORE
28-
Environment.GetEnvironmentVariable("SERVICESTACK_LICENSE");
28+
Licensing.RegisterLicense(Environment.GetEnvironmentVariable("SERVICESTACK_LICENSE"));
2929
#else
3030
Licensing.RegisterLicense(new AppSettings().GetString("servicestack:license"));
3131
#endif

0 commit comments

Comments
 (0)