Skip to content

Commit

Permalink
New test for LinuxCgroupStatistics
Browse files Browse the repository at this point in the history
  • Loading branch information
li-afaris committed Jun 6, 2024
1 parent e9ebd8a commit 53f5f6e
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.apache.samza.container.host;

import org.junit.Test;
import static org.junit.Assert.*;


public class TestLinuxCgroupStatistics {
@Test
public void testGetCgroupCPUThrottleRatio() {
LinuxCgroupStatistics linuxCgroupStatistics = new LinuxCgroupStatistics(10.0);
assertEquals(linuxCgroupStatistics.getCgroupCpuThrottleRatio(), 10.0, 0.05);
}
}

0 comments on commit 53f5f6e

Please sign in to comment.