Skip to content

Commit c1f1ebf

Browse files
author
lijianguo
committed
chore(limits):Unlimited -> Default
1 parent 87768ed commit c1f1ebf

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

cmd/limits.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func (d *DryccCmd) LimitsList(appID string) error {
2727

2828
d.Println("--- Memory")
2929
if len(config.Memory) == 0 {
30-
d.Println("Unlimited")
30+
d.Println("Default")
3131
} else {
3232
memoryMap := make(map[string]string)
3333

@@ -40,7 +40,7 @@ func (d *DryccCmd) LimitsList(appID string) error {
4040

4141
d.Println("\n--- CPU")
4242
if len(config.CPU) == 0 {
43-
d.Println("Unlimited")
43+
d.Println("Default")
4444
} else {
4545
cpuMap := make(map[string]string)
4646

cmd/limits_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@ worker 1
152152
assert.Equal(t, b.String(), `=== franklin Limits
153153
154154
--- Memory
155-
Unlimited
155+
Default
156156
157157
--- CPU
158-
Unlimited
158+
Default
159159
`, "output")
160160
}
161161

@@ -204,7 +204,7 @@ func TestLimitsSet(t *testing.T) {
204204
=== foo Limits
205205
206206
--- Memory
207-
Unlimited
207+
Default
208208
209209
--- CPU
210210
web 100m
@@ -248,7 +248,7 @@ web 100m
248248
web 1G
249249
250250
--- CPU
251-
Unlimited
251+
Default
252252
`, "output")
253253

254254
// with requests/limit parameter
@@ -296,7 +296,7 @@ web 2000M
296296
worker 3G
297297
298298
--- CPU
299-
Unlimited
299+
Default
300300
`, "output")
301301

302302
// with requests/limit parameter
@@ -339,7 +339,7 @@ Unlimited
339339
=== phew Limits
340340
341341
--- Memory
342-
Unlimited
342+
Default
343343
344344
--- CPU
345345
db 5.6
@@ -393,7 +393,7 @@ func TestLimitsUnset(t *testing.T) {
393393
=== foo Limits
394394
395395
--- Memory
396-
Unlimited
396+
Default
397397
398398
--- CPU
399399
web 100m
@@ -437,6 +437,6 @@ web 100m
437437
web 1G
438438
439439
--- CPU
440-
Unlimited
440+
Default
441441
`, "output")
442442
}

0 commit comments

Comments
 (0)