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
262caa51
Commit
262caa51
authored
Jun 12, 2018
by
Nick Craver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests: woops, that'll matter.
parent
c6f30d93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Failover.cs
StackExchange.Redis.Tests/Failover.cs
+3
-3
No files found.
StackExchange.Redis.Tests/Failover.cs
View file @
262caa51
...
@@ -142,8 +142,8 @@ public async Task DeslaveGoesToPrimary()
...
@@ -142,8 +142,8 @@ public async Task DeslaveGoesToPrimary()
Writer
.
WriteLine
(
"Connecting to secondary validation connection."
);
Writer
.
WriteLine
(
"Connecting to secondary validation connection."
);
using
(
var
conn2
=
ConnectionMultiplexer
.
Connect
(
config
))
using
(
var
conn2
=
ConnectionMultiplexer
.
Connect
(
config
))
{
{
var
primary2
=
conn
.
GetServer
(
TestConfig
.
Current
.
FailoverMasterServerAndPort
);
var
primary2
=
conn
2
.
GetServer
(
TestConfig
.
Current
.
FailoverMasterServerAndPort
);
var
secondary2
=
conn
.
GetServer
(
TestConfig
.
Current
.
FailoverSlaveServerAndPort
);
var
secondary2
=
conn
2
.
GetServer
(
TestConfig
.
Current
.
FailoverSlaveServerAndPort
);
Writer
.
WriteLine
(
$"Check:
{
primary2
.
EndPoint
}
:
{
primary2
.
ServerType
}
, Mode:
{(
primary2
.
IsSlave
?
"Slave"
:
"Master"
)}
"
);
Writer
.
WriteLine
(
$"Check:
{
primary2
.
EndPoint
}
:
{
primary2
.
ServerType
}
, Mode:
{(
primary2
.
IsSlave
?
"Slave"
:
"Master"
)}
"
);
Writer
.
WriteLine
(
$"Check:
{
secondary2
.
EndPoint
}
:
{
secondary2
.
ServerType
}
, Mode:
{(
secondary2
.
IsSlave
?
"Slave"
:
"Master"
)}
"
);
Writer
.
WriteLine
(
$"Check:
{
secondary2
.
EndPoint
}
:
{
secondary2
.
ServerType
}
, Mode:
{(
secondary2
.
IsSlave
?
"Slave"
:
"Master"
)}
"
);
...
@@ -151,7 +151,7 @@ public async Task DeslaveGoesToPrimary()
...
@@ -151,7 +151,7 @@ public async Task DeslaveGoesToPrimary()
Assert
.
False
(
primary2
.
IsSlave
,
$"
{
primary2
.
EndPoint
}
should be a master (verification connection)."
);
Assert
.
False
(
primary2
.
IsSlave
,
$"
{
primary2
.
EndPoint
}
should be a master (verification connection)."
);
Assert
.
True
(
secondary2
.
IsSlave
,
$"
{
secondary2
.
EndPoint
}
should be a slave (verification connection)."
);
Assert
.
True
(
secondary2
.
IsSlave
,
$"
{
secondary2
.
EndPoint
}
should be a slave (verification connection)."
);
var
db2
=
conn
.
GetDatabase
();
var
db2
=
conn
2
.
GetDatabase
();
Assert
.
Equal
(
primary2
.
EndPoint
,
db2
.
IdentifyEndpoint
(
key
,
CommandFlags
.
PreferMaster
));
Assert
.
Equal
(
primary2
.
EndPoint
,
db2
.
IdentifyEndpoint
(
key
,
CommandFlags
.
PreferMaster
));
Assert
.
Equal
(
primary2
.
EndPoint
,
db2
.
IdentifyEndpoint
(
key
,
CommandFlags
.
DemandMaster
));
Assert
.
Equal
(
primary2
.
EndPoint
,
db2
.
IdentifyEndpoint
(
key
,
CommandFlags
.
DemandMaster
));
...
...
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