Update tests to adapt new type of fields in resource

The type has been changed to Option type.

Signed-off-by: Tim Zhang <tim@hyper.sh>
This commit is contained in:
Tim Zhang
2020-11-09 18:58:05 +08:00
parent 567cdb43b3
commit 10650e2b16
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ pub fn test_blkio_res_build() {
let h = Box::new(&*h);
let cg: Cgroup = CgroupBuilder::new("test_blkio_res_build", h)
.blkio()
.weight(Some(100))
.weight(100)
.done()
.build();