Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;

/**
* Created by hexiaofeng on 16-7-4.
Expand All @@ -32,7 +33,7 @@ public class SystemsTest {
public void testGetCores() throws IOException {
System.out.println(Systems.getCores());
Systems.JDOS1CoresDetector.ETC_CONFIG_INFO = "";
File file = File.createTempFile("config_info", "");
File file = Files.createTempFile("config_info", "").toFile();
Files.write(file,
"{\"Config\": {\"Cpuset\": \"1,2\", \"Memory\": 4294967296}, \"host_ip\": \"10.8.65" + ".251\"}");
String config = Systems.JDOS1CoresDetector.ETC_CONFIG_INFO;
Expand Down