summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Hui Jiang <jiangphcn@apache.org>2018-10-17 21:29:40 +0800
committerGitHub <noreply@github.com>2018-10-17 21:29:40 +0800
commit3ef0b37792811f2c94bbae96d7b9df5105a5cc0a (patch)
tree027633faa9ae4567ccab5bf8f3117afaf6e4d58c
parenta0f6041c87dccc2969d1348ab477c5454d3a2b63 (diff)
parentbb285676b0506f06ee8f4e86f0d4edbdcd615c51 (diff)
downloadcouchdb-3ef0b37792811f2c94bbae96d7b9df5105a5cc0a.tar.gz
Merge pull request #1660 from apache/fix-upgrade_v5_test
Fix test failure on upgrade_v5_test
-rw-r--r--src/couch/src/couch_bt_engine_header.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/couch/src/couch_bt_engine_header.erl b/src/couch/src/couch_bt_engine_header.erl
index c6034179a..9c8e7adb3 100644
--- a/src/couch/src/couch_bt_engine_header.erl
+++ b/src/couch/src/couch_bt_engine_header.erl
@@ -368,12 +368,12 @@ upgrade_v3_test() ->
-endif.
-upgrade_v5_test() ->
+upgrade_v5_to_v7_test() ->
Vsn5Header = mk_header(5),
NewHeader = upgrade_disk_version(upgrade_tuple(Vsn5Header)),
?assert(is_record(NewHeader, db_header)),
- ?assertEqual(5, disk_version(NewHeader)),
+ ?assertEqual(7, disk_version(NewHeader)),
% Security ptr isn't changed for v5 headers
?assertEqual(bang, security_ptr(NewHeader)).