Skip to content

Commit

Permalink
SubKeys must be binary()/null
Browse files Browse the repository at this point in the history
SubKey of integer() used - falls foul of stronger checking
  • Loading branch information
martinsumner committed Nov 18, 2024
1 parent 0f7ed91 commit bf4c345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/property/leveled_statemeqc.erl
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ mput_pre(S) ->
%%
%% Really weird to have to specify a value in case of a remove action
mput_args(#{leveled := Pid, previous_keys := PK}) ->
?LET(Objs, list({gen_key_in_bucket(PK), nat()}),
?LET(Objs, list({gen_key_in_bucket(PK), null}),
[Pid, [ {weighted_default({5, add}, {1, remove}), Bucket, Key, SubKey, gen_val()} || {{Key, Bucket}, SubKey} <- Objs ]]).


Expand Down

0 comments on commit bf4c345

Please sign in to comment.