Skip to content

Commit

Permalink
[Test] Removed Windows specific code.
Browse files Browse the repository at this point in the history
On Windows, genClientPeerId used to return the hardcoded string "MASTER:0"
instead of the ip:port value, it is now fixed so the windows-only case in
the test is not needed anymore.
  • Loading branch information
enricogior committed Aug 20, 2015
1 parent c4af4d5 commit dafaa71
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions tests/integration/replication-psync.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,12 @@ proc test_psync {descr duration backlog_size backlog_ttl delay cond} {
catch {
if {$delay} {
$slave multi
if { $::tcl_platform(platform) == "windows" } {
$slave client kill MASTER:0
} else {
$slave client kill $master_host:$master_port
}
$slave client kill $master_host:$master_port

$slave debug sleep $delay
$slave exec
} else {
if { $::tcl_platform(platform) == "windows" } {
$slave client kill MASTER:0
} else {
$slave client kill $master_host:$master_port
}
$slave client kill $master_host:$master_port
}
}
}
Expand Down

0 comments on commit dafaa71

Please sign in to comment.