Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
StackExchange.Redis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
StackExchange.Redis
Commits
eacfaecd
Commit
eacfaecd
authored
Jul 03, 2018
by
Nick Craver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove VPNTest
parent
96b16792
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
53 deletions
+0
-53
TestConfig.cs
StackExchange.Redis.Tests/Helpers/TestConfig.cs
+0
-2
VPNTest.cs
StackExchange.Redis.Tests/VPNTest.cs
+0
-51
No files found.
StackExchange.Redis.Tests/Helpers/TestConfig.cs
View file @
eacfaecd
...
@@ -87,8 +87,6 @@ public class Config
...
@@ -87,8 +87,6 @@ public class Config
public
string
SSDBServer
{
get
;
set
;
}
public
string
SSDBServer
{
get
;
set
;
}
public
int
SSDBPort
{
get
;
set
;
}
=
8888
;
public
int
SSDBPort
{
get
;
set
;
}
=
8888
;
public
List
<
string
>
VPNConfigs
{
get
;
set
;
}
}
}
}
}
}
}
StackExchange.Redis.Tests/VPNTest.cs
deleted
100644 → 0
View file @
96b16792
using
System.Collections.Generic
;
using
System.IO
;
using
System.Linq
;
using
Xunit
;
using
Xunit.Abstractions
;
namespace
StackExchange.Redis.Tests
{
public
class
VPNTest
:
TestBase
{
public
VPNTest
(
ITestOutputHelper
output
)
:
base
(
output
)
{
}
public
static
IEnumerable
<
object
[
]>
GetVPNConfigs
=>
TestConfig
.
Current
.
VPNConfigs
?.
Select
(
c
=>
new
object
[]
{
c
})
??
new
[]
{
new
[]
{
""
}
};
// xUnit errors on an empty theory and I'm tired of it
[
Theory
]
[
MemberData
(
nameof
(
GetVPNConfigs
))]
public
void
Execute
(
string
config
)
{
if
(
string
.
IsNullOrEmpty
(
config
))
{
Skip
.
IfNoConfig
(
nameof
(
TestConfig
.
Config
.
VPNConfigs
),
TestConfig
.
Current
.
VPNConfigs
);
}
for
(
int
i
=
0
;
i
<
50
;
i
++)
{
var
log
=
new
StringWriter
();
try
{
var
options
=
ConfigurationOptions
.
Parse
(
config
);
options
.
SyncTimeout
=
3000
;
options
.
ConnectRetry
=
5
;
using
(
var
conn
=
ConnectionMultiplexer
.
Connect
(
options
,
log
))
{
var
ttl
=
conn
.
GetDatabase
().
Ping
();
Output
.
WriteLine
(
ttl
.
ToString
());
}
}
catch
{
Output
.
WriteLine
(
log
.
ToString
());
throw
;
}
Output
.
WriteLine
(
""
);
Output
.
WriteLine
(
"==="
);
Output
.
WriteLine
(
""
);
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment