Skip to content

Commit 2b3c280

Browse files
authored
Merge pull request #1240 from basho/bugfix_jrd_caps-race
Introduce capabilities check to avoid race
2 parents e301500 + 461ce34 commit 2b3c280

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/riak727.erl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ confirm() ->
5050
%% typed, and custom typed buckets are as expected.
5151
-spec verify_default_bucket_props(node(), binary()) -> ok | no_return().
5252
verify_default_bucket_props(Node, Type) ->
53+
%% Once in a blue moon we'll try to create a bucket type before
54+
%% all capabilities have been registered. Bucket type creation
55+
%% fails if this one isn't present yet.
56+
rt:wait_until_capability(Node, {riak_core,bucket_types}, true),
57+
5358
rt:create_and_activate_bucket_type(Node, Type, [{nonsense, <<"value">>}]),
5459

5560
DefProps = get_props(Node, <<"default">>),

0 commit comments

Comments
 (0)