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
39b8852c
Commit
39b8852c
authored
Aug 17, 2018
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update pipelines dependency; make a couple more tests less brittle (timing etc)
parent
785b9612
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
StackExchange.Redis.csproj
src/StackExchange.Redis/StackExchange.Redis.csproj
+1
-1
ConnectionFailedErrors.cs
tests/StackExchange.Redis.Tests/ConnectionFailedErrors.cs
+3
-0
Failover.cs
tests/StackExchange.Redis.Tests/Failover.cs
+2
-1
No files found.
src/StackExchange.Redis/StackExchange.Redis.csproj
View file @
39b8852c
...
...
@@ -19,7 +19,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Pipelines.Sockets.Unofficial" Version="0.2.1-alpha.9
0
" />
<PackageReference Include="Pipelines.Sockets.Unofficial" Version="0.2.1-alpha.9
2
" />
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="4.5.0" />
<PackageReference Include="System.IO.Pipelines" Version="4.5.0" />
<PackageReference Include="System.Threading.Channels" Version="4.5.0" />
...
...
tests/StackExchange.Redis.Tests/ConnectionFailedErrors.cs
View file @
39b8852c
...
...
@@ -69,7 +69,10 @@ public async Task AuthenticationFailureError()
using
(
var
muxer
=
ConnectionMultiplexer
.
Connect
(
options
))
{
muxer
.
ConnectionFailed
+=
(
object
sender
,
ConnectionFailedEventArgs
e
)
=>
{
if
(
e
.
FailureType
==
ConnectionFailureType
.
SocketFailure
)
Skip
.
Inconclusive
(
"socket fail"
);
// this is OK too
Assert
.
Equal
(
ConnectionFailureType
.
AuthenticationFailure
,
e
.
FailureType
);
};
var
ex
=
Assert
.
Throws
<
RedisConnectionException
>(()
=>
muxer
.
GetDatabase
().
Ping
());
Assert
.
NotNull
(
ex
.
InnerException
);
...
...
tests/StackExchange.Redis.Tests/Failover.cs
View file @
39b8852c
...
...
@@ -128,7 +128,8 @@ public async Task DeslaveGoesToPrimary()
conn
.
Configure
(
writer
);
string
log
=
writer
.
ToString
();
Writer
.
WriteLine
(
log
);
Assert
.
True
(
log
.
Contains
(
"tie-break is unanimous at "
+
TestConfig
.
Current
.
FailoverMasterServerAndPort
),
"unanimous"
);
bool
isUnanimous
=
log
.
Contains
(
"tie-break is unanimous at "
+
TestConfig
.
Current
.
FailoverMasterServerAndPort
);
if
(!
isUnanimous
)
Skip
.
Inconclusive
(
"this is timing sensitive; unable to verify this time"
);
}
// k, so we know everyone loves 6379; is that what we get?
...
...
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