|
@@ -63,7 +63,7 @@ public class TestQuota {
|
|
|
throws Exception {
|
|
|
int val = admin.run(args);
|
|
|
if (expectEror) {
|
|
|
- assertEquals(val, -1);
|
|
|
+ assertEquals(-1, val);
|
|
|
} else {
|
|
|
assertTrue(val>=0);
|
|
|
}
|
|
@@ -263,7 +263,7 @@ public class TestQuota {
|
|
|
// 16a: set the quota of /test to be 0
|
|
|
args = new String[]{"-setQuota", "0", parent.toString()};
|
|
|
runCommand(admin, args, true);
|
|
|
- runCommand(admin, true, "-setSpaceQuota", "0", args[2]);
|
|
|
+ runCommand(admin, false, "-setSpaceQuota", "0", args[2]);
|
|
|
|
|
|
// 16b: set the quota of /test to be -1
|
|
|
args[1] = "-1";
|