File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
lib/travis/api/enqueue/services Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ def accept?
31
31
end
32
32
33
33
def billing?
34
+ # there is no billing for .org
35
+ return true if Travis . config . org?
36
+
34
37
@_billing_ok ||= begin
35
38
jobs = target . is_a? ( Job ) ? [ target ] : target . matrix
36
39
Original file line number Diff line number Diff line change 238
238
stub_request ( :post , /http:\/ \/ localhost:9292\/ (users|organizations)\/ (.+)\/ authorize_build/ ) . to_return (
239
239
body : MultiJson . dump ( error : 'Plan not found' ) , status : 404
240
240
)
241
+ Travis . config . host = 'travis-ci.com'
241
242
end
242
243
243
244
it 'restarts the job' do
251
252
stub_request ( :post , /http:\/ \/ localhost:9292\/ (users|organizations)\/ (.+)\/ authorize_build/ ) . to_return (
252
253
body : MultiJson . dump ( allowed : false , rejection_code : :no_build_credits ) , status : 403
253
254
)
255
+ Travis . config . host = 'travis-ci.com'
254
256
end
255
257
256
258
it 'does not restart the job' do
You can’t perform that action at this time.
0 commit comments