Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit a5aaaf2

Browse files
committed
Update tests to show it still works without suffix
Signed-off-by: Vincent Demeester <[email protected]>
1 parent ba184a1 commit a5aaaf2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

project/project_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ func TestParseWithMultipleComposeFiles(t *testing.T) {
202202
multiple:
203203
image: busybox
204204
mem_limit: "40m"
205+
memswap_limit: 40000000
205206
ports:
206207
- 10000`)
207208

@@ -244,4 +245,5 @@ func TestParseWithMultipleComposeFiles(t *testing.T) {
244245
assert.Equal(t, "multi", multipleConfig.ContainerName)
245246
assert.Equal(t, []string{"8000", "9000", "10000"}, multipleConfig.Ports)
246247
assert.Equal(t, yaml.MemStringorInt(41943040), multipleConfig.MemLimit)
248+
assert.Equal(t, yaml.MemStringorInt(40000000), multipleConfig.MemSwapLimit)
247249
}

0 commit comments

Comments
 (0)