Commits

Andy Gross  committed c7926f0

clientid uniqueness test

  • Participants
  • Parent commits b89ac74

Comments (0)

Files changed (1)

File src/riak_util.erl

            riak_object:update_metadata(
              O, dict:store(<<"X-Riak-Deleted">>, true, MD))),
     true = is_x_deleted(O1).
+
+clientid_uniqueness_test() ->
+    ClientIds = [mkclientid('somenode@somehost') || I <- lists:seq(0, 10000)],
+    length(ClientIds) =:= length(sets:to_list(sets:from_list(ClientIds))).