Skip to content

Commit 53f5f6e

Browse files
committed
New test for LinuxCgroupStatistics
1 parent e9ebd8a commit 53f5f6e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package org.apache.samza.container.host;
2+
3+
import org.junit.Test;
4+
import static org.junit.Assert.*;
5+
6+
7+
public class TestLinuxCgroupStatistics {
8+
@Test
9+
public void testGetCgroupCPUThrottleRatio() {
10+
LinuxCgroupStatistics linuxCgroupStatistics = new LinuxCgroupStatistics(10.0);
11+
assertEquals(linuxCgroupStatistics.getCgroupCpuThrottleRatio(), 10.0, 0.05);
12+
}
13+
}

0 commit comments

Comments
 (0)