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
c3bc13d7
Commit
c3bc13d7
authored
Mar 23, 2020
by
Nick Craver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move Issue922_ReconnectRaised to DEBUG
parent
63bbcded
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
ConnectingFailDetection.cs
tests/StackExchange.Redis.Tests/ConnectingFailDetection.cs
+20
-20
No files found.
tests/StackExchange.Redis.Tests/ConnectingFailDetection.cs
View file @
c3bc13d7
...
@@ -92,26 +92,6 @@ public async Task FastNoticesFailOnConnectingAsyncCompletion()
...
@@ -92,26 +92,6 @@ public async Task FastNoticesFailOnConnectingAsyncCompletion()
ClearAmbientFailures
();
ClearAmbientFailures
();
}
}
}
}
#endif
[
Fact
]
public
void
ConnectsWhenBeginConnectCompletesSynchronously
()
{
try
{
using
(
var
muxer
=
Create
(
keepAlive
:
1
,
connectTimeout
:
3000
))
{
var
conn
=
muxer
.
GetDatabase
();
conn
.
Ping
();
Assert
.
True
(
muxer
.
IsConnected
);
}
}
finally
{
ClearAmbientFailures
();
}
}
[
Fact
]
[
Fact
]
public
async
Task
Issue922_ReconnectRaised
()
public
async
Task
Issue922_ReconnectRaised
()
...
@@ -143,5 +123,25 @@ public async Task Issue922_ReconnectRaised()
...
@@ -143,5 +123,25 @@ public async Task Issue922_ReconnectRaised()
Assert
.
Equal
(
2
,
Volatile
.
Read
(
ref
restoreCount
));
Assert
.
Equal
(
2
,
Volatile
.
Read
(
ref
restoreCount
));
}
}
}
}
#endif
[
Fact
]
public
void
ConnectsWhenBeginConnectCompletesSynchronously
()
{
try
{
using
(
var
muxer
=
Create
(
keepAlive
:
1
,
connectTimeout
:
3000
))
{
var
conn
=
muxer
.
GetDatabase
();
conn
.
Ping
();
Assert
.
True
(
muxer
.
IsConnected
);
}
}
finally
{
ClearAmbientFailures
();
}
}
}
}
}
}
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