Better error message - print node details

This commit is contained in:
Jason King 2011-10-03 22:03:50 +01:00
parent 5957e1953d
commit 5b6b4da3f9
1 changed files with 1 additions and 1 deletions

View File

@ -717,7 +717,7 @@ public abstract class BaseComputeServiceLiveTest {
long time = currentTimeMillis();
Set<? extends NodeMetadata> nodes = client.createNodesInGroup(group, 1, options);
NodeMetadata node = getOnlyElement(nodes);
assert node.getState() != NodeState.RUNNING;
assert node.getState() != NodeState.RUNNING : node;
long duration = (currentTimeMillis() - time) / 1000;
assert duration < nonBlockDurationSeconds : format("duration(%d) longer than expected(%d) seconds! ",
duration, nonBlockDurationSeconds);