Fix bad_arg errors in low level eunit tests ... all pass now, yay!

This commit is contained in:
Scott Lystig Fritchie 2015-12-02 15:57:25 +09:00
parent d44e9dd542
commit 37f33fae7b
2 changed files with 2 additions and 2 deletions

View file

@ -146,7 +146,7 @@ flu_smoke_test() ->
Chunk2 = <<"yo yo">>,
Len2 = byte_size(Chunk2),
Off2 = ?MINIMUM_OFFSET + 77,
File2 = "smoke-whole-file^1^1",
File2 = "smoke-whole-file^^0^1^1",
ok = ?FLU_C:write_chunk(Host, TcpPort, ?DUMMY_PV1_EPOCH,
File2, Off2, Chunk2),
{error, bad_arg} = ?FLU_C:write_chunk(Host, TcpPort, ?DUMMY_PV1_EPOCH,

View file

@ -72,7 +72,7 @@ api_smoke_test() ->
{error, bad_checksum} = ?MUT:append_chunk(Prox1, FakeEpoch,
Prefix, MyChunk_badcs),
{error, bad_checksum} = ?MUT:write_chunk(Prox1, FakeEpoch,
<<"foo-file^1^1">>, 99832,
<<"foo-file^^0^1^1">>, 99832,
MyChunk_badcs),
%% Put kick_projection_reaction() in the middle of the test so