From 96b561cde975ad28a6e0633f515049bd1a657623 Mon Sep 17 00:00:00 2001 From: Scott Lystig Fritchie Date: Wed, 26 Feb 2014 22:03:28 +0900 Subject: [PATCH] Fix broken EUnit tests --- prototype/corfurl/test/corfurl_test.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prototype/corfurl/test/corfurl_test.erl b/prototype/corfurl/test/corfurl_test.erl index 21191c2..f2a6b4b 100644 --- a/prototype/corfurl/test/corfurl_test.erl +++ b/prototype/corfurl/test/corfurl_test.erl @@ -89,7 +89,7 @@ smoke1_test() -> P0 = ?M:new_simple_projection(PDir, 1, 1, 1*100, [[F1, F2, F3], [F4, F5, F6]]), P1 = P0#proj{seq={Seq, unused, unused}}, - [begin {ok, LPN} = ?M:append_page(P1, Pg) end || {LPN, Pg} <- LPN_Pgs], + [begin {{ok, LPN}, _} = corfurl_client:append_page(P1, Pg) end || {LPN, Pg} <- LPN_Pgs], [begin {ok, Pg} = ?M:read_page(P1, LPN) end || {LPN, Pg} <- LPN_Pgs], @@ -111,7 +111,7 @@ smoke1_test() -> %% Simulate a failed write to the chain. [F6a, F6b, F6c] = Chain6 = ?M:project_to_chain(6, P1), NotHead6 = [F6b, F6c], - ok = ?M:write_single_page_to_chain([F6a], [F6a], Epoch, 6, Pg6, 1), + ok = ?M:write_page_to_chain([F6a], [F6a], Epoch, 6, Pg6, 1), %% Does the chain look as expected? {ok, Pg6} = corfurl_flu:read(?M:flu_pid(F6a), Epoch, 6),