summaryrefslogtreecommitdiff
path: root/tests/integration/rdb.tcl
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2013-04-22 11:25:44 +0200
committerantirez <antirez@gmail.com>2013-04-22 11:25:49 +0200
commit4ed2581a9284de0c77ccf31857cdbe27733428c4 (patch)
tree420204b2f95852d605cc59d78706383323c86c3e /tests/integration/rdb.tcl
parent8e222c888fd115eb1cdfbb98d5bb2b625be23afb (diff)
downloadredis-4ed2581a9284de0c77ccf31857cdbe27733428c4.tar.gz
Test: split conceptually unrelated comments in RDB test.
Diffstat (limited to 'tests/integration/rdb.tcl')
-rw-r--r--tests/integration/rdb.tcl4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/integration/rdb.tcl b/tests/integration/rdb.tcl
index 9322ef2af..fdc9e42d4 100644
--- a/tests/integration/rdb.tcl
+++ b/tests/integration/rdb.tcl
@@ -63,8 +63,10 @@ start_server_and_kill_it [list "dir" $server_path] {
}
}
-# Fix permissions of the RDB file, but corrupt its CRC64 checksum.
+# Fix permissions of the RDB file.
file attributes [file join $server_path dump.rdb] -permissions 0666
+
+# Corrupt its CRC64 checksum.
set filesize [file size [file join $server_path dump.rdb]]
set fd [open [file join $server_path dump.rdb] r+]
fconfigure $fd -translation binary