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
6f746c6f
Commit
6f746c6f
authored
Jul 10, 2018
by
Nick Craver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests: cleanup
parent
8a7fc8f4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
+7
-8
Cluster.cs
StackExchange.Redis.Tests/Cluster.cs
+1
-2
Config.cs
StackExchange.Redis.Tests/Config.cs
+0
-2
RedisValueEquivalency.cs
StackExchange.Redis.Tests/RedisValueEquivalency.cs
+2
-1
SSL.cs
StackExchange.Redis.Tests/SSL.cs
+4
-3
No files found.
StackExchange.Redis.Tests/Cluster.cs
View file @
6f746c6f
...
...
@@ -217,7 +217,6 @@ string StringGet(IServer server, RedisKey key, CommandFlags flags = CommandFlags
var
ex
=
Assert
.
Throws
<
RedisServerException
>(()
=>
StringGet
(
conn
.
GetServer
(
node
.
EndPoint
),
key
,
CommandFlags
.
NoRedirect
));
Assert
.
StartsWith
(
$"Key has MOVED from Endpoint
{
rightMasterNode
.
EndPoint
}
and hashslot
{
slot
}
"
,
ex
.
Message
);
}
}
}
...
...
@@ -625,7 +624,7 @@ public void MultiKeyQueryFails()
}
}
static
RedisKey
[]
InventKeys
()
private
static
RedisKey
[]
InventKeys
()
{
RedisKey
[]
keys
=
new
RedisKey
[
512
];
Random
rand
=
new
Random
(
12324
);
...
...
StackExchange.Redis.Tests/Config.cs
View file @
6f746c6f
...
...
@@ -85,7 +85,6 @@ public void ClientName()
var
name
=
(
string
)
GetAnyMaster
(
muxer
).
Execute
(
"CLIENT"
,
"GETNAME"
);
Assert
.
Equal
(
"TestRig"
,
name
);
}
}
...
...
@@ -100,7 +99,6 @@ public void DefaultClientName()
var
name
=
(
string
)
GetAnyMaster
(
muxer
).
Execute
(
"CLIENT"
,
"GETNAME"
);
Assert
.
Equal
(
Environment
.
MachineName
,
name
);
}
}
...
...
StackExchange.Redis.Tests/RedisValueEquivalency.cs
View file @
6f746c6f
...
...
@@ -152,7 +152,8 @@ private static void CheckString(RedisValue value, string expected)
private
static
byte
[]
Bytes
(
string
s
)
=>
s
==
null
?
null
:
Encoding
.
UTF8
.
GetBytes
(
s
);
string
LineNumber
([
CallerLineNumber
]
int
lineNumber
=
0
)
=>
lineNumber
.
ToString
();
private
string
LineNumber
([
CallerLineNumber
]
int
lineNumber
=
0
)
=>
lineNumber
.
ToString
();
[
Fact
]
public
void
RedisValueStartsWith
()
{
...
...
StackExchange.Redis.Tests/SSL.cs
View file @
6f746c6f
...
...
@@ -67,8 +67,10 @@ public async Task ConnectToSSLServer(bool useSsl, bool specifyHost)
SyncTimeout
=
Debugger
.
IsAttached
?
int
.
MaxValue
:
5000
,
Password
=
password
,
};
var
map
=
new
Dictionary
<
string
,
string
>();
map
[
"config"
]
=
null
;
// don't rely on config working
var
map
=
new
Dictionary
<
string
,
string
>
{
[
"config"
]
=
null
// don't rely on config working
};
if
(!
isAzure
)
map
[
"cluster"
]
=
null
;
config
.
CommandMap
=
CommandMap
.
Create
(
map
);
if
(
port
!=
null
)
config
.
EndPoints
.
Add
(
server
,
port
.
Value
);
...
...
@@ -322,7 +324,6 @@ public void SSLParseViaConfig_Issue883_ConfigObject()
}
}
[
Fact
]
public
void
SSLParseViaConfig_Issue883_ConfigString
()
{
...
...
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