Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
redis
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
What's new
5
Snippets
Groups
Projects
gitlab-org
build
omnibus-mirror
redis
Commits
49f11f2e
Commit
49f11f2e
authored
10 years ago
by
antirez
Browse files
Options
Downloads
Patches
Plain Diff
SPOP replication tests.
parent
616bca99
Branches
dictc
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/integration/replication-4.tcl
+19
-0
19 additions, 0 deletions
tests/integration/replication-4.tcl
with
19 additions
and
0 deletions
tests/integration/replication-4.tcl
+
19
−
0
View file @
49f11f2e
...
...
@@ -132,5 +132,24 @@ start_server {tags {"repl"}} {
}
assert
{[
$master
dbsize
]
> 0
}
}
test
{
Replication of SPOP command -- alsoPropagate
()
API
}
{
$master del myset
set size
[
randomInt 100
]
set content
{}
for
{
set j 0
}
{
$j
< $size
}
{
incr j
}
{
lappend content
[
randomValue
]
}
$master sadd myset
{*}
$content
set count
[
randomInt 100
]
set result
[
$master
spop myset $count
]
wait_for_condition 50 100
{
[
$master
debug digest
]
eq
[
$slave
debug digest
]
}
else
{
fail
"SPOP replication inconsistency"
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment