Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase all plans max capacity by one #183

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kerrizor
Copy link
Contributor

@kerrizor kerrizor commented Dec 5, 2018

travis-ci/product#97

@kerrizor kerrizor force-pushed the kerrizor/increase-all-plans-max-capacity-by-one branch 3 times, most recently from f034a8c to 41a0a1a Compare December 5, 2018 23:44
@@ -16,7 +16,7 @@

describe 'with a subscription on the delegatee' do
before { FactoryGirl.create(:subscription, owner: anja, selected_plan: :ten) }
it { expect(owners.max_jobs).to eq 10 }
it { expect(owners.max_jobs).to eq 11 }

This comment was marked as spam.

@@ -27,7 +27,7 @@
describe 'with a subscription on both the delegatee and delegate' do
before { FactoryGirl.create(:subscription, owner: anja, selected_plan: :ten) }
before { FactoryGirl.create(:subscription, owner: travis, selected_plan: :five) }
it { expect(owners.max_jobs).to eq 15 }
it { expect(owners.max_jobs).to eq 16 }

This comment was marked as spam.

it { expect(selected.size).to eq 2 }
it { expect(reports).to include 'user svenfuchs capacities: public max=3, plan max=3' }
it { expect(reports).to include 'user svenfuchs plan capacity: running=1 max=3 selected=2' }
it { expect(reports).to include 'user svenfuchs: queueable=5 running=1 selected=2 total_waiting=3 waiting_for_concurrency=3' }

This comment was marked as spam.

if sub.selected_plan && sub.owner
{ plan: sub.selected_plan, owner: sub.owner }
end
}.compact

This comment was marked as spam.

@kerrizor kerrizor force-pushed the kerrizor/increase-all-plans-max-capacity-by-one branch from 72285ff to 0b682ee Compare December 6, 2018 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant