Skip to content

Commit 06c18a4

Browse files
committed
fix a unit test to be more flexible regarding increasing costs
1 parent 01367a9 commit 06c18a4

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/packages/next/components/store/quota-config-presets.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type PresetEntries = {
4747

4848
// some constants to keep text and preset in sync
4949
const STANDARD_CPU = 1;
50-
const STANDARD_RAM = 3;
50+
const STANDARD_RAM = 4;
5151
const LARGE_RAM = 8;
5252
const STANDARD_DISK = 3;
5353

src/packages/server/purchases/purchase-shopping-cart-item.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ describe("create a subscription license and edit it and confirm the subscription
136136
member: true,
137137
period: "yearly",
138138
uptime: "short",
139-
run_limit: 500,
139+
run_limit: 200,
140140
},
141141
cost: {} as any,
142142
};

src/packages/util/licenses/purchase/cost-versions.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@ const COST = {
5151
},
5252

5353
2: {
54-
SUB_DISCOUNT: { no: 1, monthly: 0.85, yearly: 0.8 },
54+
SUB_DISCOUNT: { no: 1, monthly: 0.85, yearly: 0.75 },
5555
GCE_COSTS: {
56-
ram: 0.67,
56+
ram: 0.7,
5757
cpu: 5,
58-
disk: 0.05,
58+
disk: 0.1,
5959
non_pre_factor: 3.5,
6060
},
61-
COST_MULTIPLIER: 1.2,
61+
COST_MULTIPLIER: 1,
6262
NONMEMBER_DENSITY: 2,
6363
ACADEMIC_DISCOUNT: 0.6,
64-
DISK_FACTOR: 20,
64+
DISK_FACTOR: 10,
6565
RAM_OVERCOMMIT: 5,
6666
CPU_OVERCOMMIT: 10,
6767
ALWAYS_RUNNING_FACTOR: 2,

0 commit comments

Comments
 (0)