Browse Source

Fix Proper tests following cow_hpack changes

Loïc Hoguin 5 years ago
parent
commit
f14445f046
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/cow_hpack.erl

+ 2 - 2
src/cow_hpack.erl

@@ -1358,11 +1358,11 @@ table_update_size(MaxSize, State=#state{dyn_table=DynTable}) ->
 -ifdef(TEST).
 prop_str_raw() ->
 	?FORALL(Str, binary(), begin
-		{Str, <<>>} =:= dec_str(iolist_to_binary(enc_str(Str, #{huffman => false})))
+		{Str, <<>>} =:= dec_str(iolist_to_binary(enc_str(Str, no_huffman)))
 	end).
 
 prop_str_huffman() ->
 	?FORALL(Str, binary(), begin
-		{Str, <<>>} =:= dec_str(iolist_to_binary(enc_str(Str, #{huffman => true})))
+		{Str, <<>>} =:= dec_str(iolist_to_binary(enc_str(Str, huffman)))
 	end).
 -endif.