mirror of https://github.com/apache/druid.git
fix broken UT
This commit is contained in:
parent
e1527a44d4
commit
91cd9e9536
|
@ -296,9 +296,10 @@ public class InfoResource
|
|||
final List<Rule> rules
|
||||
)
|
||||
{
|
||||
return Response.status(Response.Status.OK)
|
||||
.entity(databaseRuleCoordinator.overrideRule(dataSourceName, rules))
|
||||
.build();
|
||||
if (databaseRuleCoordinator.overrideRule(dataSourceName, rules)) {
|
||||
return Response.status(Response.Status.OK).build();
|
||||
}
|
||||
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).build();
|
||||
}
|
||||
|
||||
@GET
|
||||
|
|
|
@ -133,7 +133,7 @@ public class ZkCoordinatorTest
|
|||
@Override
|
||||
public String getSubType()
|
||||
{
|
||||
return null;
|
||||
return "normal";
|
||||
}
|
||||
},
|
||||
"dummyType"
|
||||
|
|
Loading…
Reference in New Issue