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
b9fe80ad
Commit
b9fe80ad
authored
Aug 10, 2018
by
Nick Craver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove silly test
After QUIT is totally random on timings, screw it.
parent
af2bfbe4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
29 deletions
+0
-29
BasicOps.cs
StackExchange.Redis.Tests/BasicOps.cs
+0
-29
No files found.
StackExchange.Redis.Tests/BasicOps.cs
View file @
b9fe80ad
...
...
@@ -280,35 +280,6 @@ public void GetWithExpiryWrongTypeSync()
Assert
.
Equal
(
"WRONGTYPE Operation against a key holding the wrong kind of value"
,
ex
.
Message
);
}
[
Fact
]
public
async
Task
TestQuit
()
{
SetExpectedAmbientFailureCount
(
1
);
using
(
var
muxer
=
Create
(
allowAdmin
:
true
))
{
muxer
.
ConnectionFailed
+=
(
_
,
args
)
=>
Log
(
"{0}: Connection Failed: {1}"
,
Time
(),
args
.
ToString
());
muxer
.
ConnectionRestored
+=
(
_
,
args
)
=>
Log
(
"{0}: Connection Restored: {1}"
,
Time
(),
args
.
ToString
());
var
db
=
muxer
.
GetDatabase
();
string
key
=
Guid
.
NewGuid
().
ToString
();
db
.
KeyDelete
(
key
,
CommandFlags
.
FireAndForget
);
db
.
StringSet
(
key
,
key
,
flags
:
CommandFlags
.
FireAndForget
);
var
ep
=
muxer
.
GetEndPoints
()[
0
];
var
nameBefore
=
muxer
.
GetConnectionName
(
ep
,
ConnectionType
.
Interactive
);
Log
(
"{0}: Issuing QUIT to {1}"
,
Time
(),
nameBefore
);
GetServer
(
muxer
).
Execute
(
"QUIT"
,
null
);
var
watch
=
Stopwatch
.
StartNew
();
Assert
.
Throws
<
RedisConnectionException
>(()
=>
Log
(
"Ping time: "
+
db
.
Ping
().
ToString
()));
watch
.
Stop
();
Log
(
"Time to notice quit: {0}ms (any order)"
,
watch
.
ElapsedMilliseconds
);
await
Task
.
Delay
(
20
).
ForAwait
();
var
nameAfter
=
muxer
.
GetConnectionName
(
ep
,
ConnectionType
.
Interactive
);
Log
(
"{0}: Not talking to {1}"
,
Time
(),
nameAfter
);
Assert
.
Equal
(
key
,
(
string
)
db
.
StringGet
(
key
));
Assert
.
NotEqual
(
nameBefore
,
nameAfter
);
}
}
[
Fact
(
Skip
=
"Unfriendly to Redis 3.x on Windows...need to investigate"
)]
public
async
Task
TestSevered
()
{
...
...
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