mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-26 08:41:05 -06:00
unbreak unit test
minor test fix
This commit is contained in:
parent
ff7d6e1aee
commit
c362065c1d
@ -125,13 +125,13 @@ public class MapLabels implements NBLabels {
|
||||
String rawName = null;
|
||||
if (null != bareName) {
|
||||
rawName = this.labels.get(bareName);
|
||||
includedNames.remove(bareName);
|
||||
if (null == rawName) throw new RuntimeException("Unable to get value for key '" + bareName + '\'');
|
||||
sb.append(rawName);
|
||||
}
|
||||
if (1 < includedNames.size()) {
|
||||
if (!includedNames.isEmpty()) {
|
||||
sb.append('{');
|
||||
for (final String includedName : includedNames) {
|
||||
if (includedName.equals(bareName)) continue;
|
||||
final String includedValue = this.labels.get(includedName);
|
||||
Objects.requireNonNull(includedValue);
|
||||
sb.append(includedName)
|
||||
@ -139,9 +139,9 @@ public class MapLabels implements NBLabels {
|
||||
.append(includedValue)
|
||||
.append('"')
|
||||
.append(',');
|
||||
sb.setLength(sb.length()-",".length());
|
||||
sb.append('}');
|
||||
}
|
||||
sb.setLength(sb.length()-",".length());
|
||||
sb.append('}');
|
||||
}
|
||||
|
||||
return sb.toString();
|
||||
|
Loading…
Reference in New Issue
Block a user