Source

riak / src / riak_dets_backend.erl

Diff from to

File src/riak_dets_backend.erl

     application:set_env(riak, riak_dets_backend_root,
                         "test/dets-backend"),
     ?assertCmd("rm -rf test/dets-backend"),
-    {ok,S} = riak_dets_backend:start(42),
-    ok = riak_dets_backend:put(S,<<"k1">>,<<"v1">>),
-    ok = riak_dets_backend:put(S,<<"k2">>,<<"v2">>),
-    {ok,<<"v2">>} = riak_dets_backend:get(S,<<"k2">>),
-    {error, notfound} = riak_dets_backend:get(S, <<"k3">>),
-    [<<"k1">>,<<"k2">>] = lists:sort(riak_dets_backend:list(S)),
-    ok = riak_dets_backend:delete(S,<<"k2">>),
-    [<<"k1">>] = riak_dets_backend:list(S),
-    ok = riak_dets_backend:stop(S).
+    riak_test_util:standard_backend_test(riak_dets_backend).
 
 % @spec start(Partition :: integer()) ->
 %                        {ok, state()} | {{error, Reason :: term()}, state()}