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
adfc504d
Commit
adfc504d
authored
Jul 15, 2018
by
Nick Craver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests: more fixes, more debugging
parent
7809d6d3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
Failover.cs
StackExchange.Redis.Tests/Failover.cs
+4
-2
Performance.cs
StackExchange.Redis.Tests/Performance.cs
+1
-1
Scripting.cs
StackExchange.Redis.Tests/Scripting.cs
+1
-1
No files found.
StackExchange.Redis.Tests/Failover.cs
View file @
adfc504d
...
...
@@ -236,8 +236,10 @@ public async Task SubscriptionsSurviveMasterSwitchAsync()
Log
(
"B: "
+
EndPointCollection
.
ToString
(
epB
));
subA
.
Publish
(
channel
,
"A1"
);
subB
.
Publish
(
channel
,
"B1"
);
subA
.
Ping
();
subB
.
Ping
();
Log
(
"SubA ping: "
+
subA
.
Ping
());
Log
(
"SubB ping: "
+
subB
.
Ping
());
// If redis is under load due to this suite, it may take a moment to send across.
await
Task
.
Delay
(
250
).
ForAwait
();
Assert
.
Equal
(
2
,
Interlocked
.
Read
(
ref
aCount
));
Assert
.
Equal
(
2
,
Interlocked
.
Read
(
ref
bCount
));
...
...
StackExchange.Redis.Tests/Performance.cs
View file @
adfc504d
...
...
@@ -124,7 +124,7 @@ public async Task BasicStringGetPerf()
Assert
.
Equal
(
"some value"
,
asyncVal
);
// let's allow 20% async overhead
// But with a floor, since the base can often be zero
Assert
.
True
(
asyncTimer
.
ElapsedMilliseconds
<=
System
.
Math
.
Max
(
syncTimer
.
ElapsedMilliseconds
*
1.2
M
,
2
0
));
Assert
.
True
(
asyncTimer
.
ElapsedMilliseconds
<=
System
.
Math
.
Max
(
syncTimer
.
ElapsedMilliseconds
*
1.2
M
,
5
0
));
}
}
}
...
...
StackExchange.Redis.Tests/Scripting.cs
View file @
adfc504d
...
...
@@ -309,7 +309,7 @@ public void ScriptThrowsErrorInsideTransaction()
Assert
.
True
(
muxer
.
Wait
(
complete
));
Assert
.
True
(
a
.
IsCompleted
,
a
.
Status
.
ToString
());
Assert
.
True
(
c
.
IsCompleted
);
Assert
.
True
(
c
.
IsCompleted
,
"State: "
+
c
.
Status
);
Assert
.
Equal
(
1L
,
a
.
Result
);
Assert
.
Equal
(
2L
,
c
.
Result
);
...
...
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