Skip to content

Commit 28a4145

Browse files
committed
fix flaky update_many test
1 parent 4c389f6 commit 28a4145

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/live/user_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ def valid_attributes
127127

128128
before do
129129
VCR.use_cassette("update_many_users") do
130-
ZendeskAPI::User.update_many!(client, created_user_ids, notes: "this is a note")
130+
ZendeskAPI::User.update_many!(client, created_user_ids, notes: "this is a note").tap do |job|
131+
job.reload! while job.status != "completed"
132+
end
131133
end
132134
end
133135

0 commit comments

Comments
 (0)