diff options
| author | Martin Ritchie <ritchiem@apache.org> | 2009-08-14 12:49:22 +0000 |
|---|---|---|
| committer | Martin Ritchie <ritchiem@apache.org> | 2009-08-14 12:49:22 +0000 |
| commit | d857695ee4c8496e3ea4aceb0bb611cedb0df71b (patch) | |
| tree | e8ad23350dcb554868473e8a77877cd418d3eb96 | |
| parent | e2a1710eb1cbd26d171173503d13b55f17ac3b40 (diff) | |
| download | qpid-python-d857695ee4c8496e3ea4aceb0bb611cedb0df71b.tar.gz | |
QPID-2002 : Relax the SubscriptionLoggingTest.testSubscriptionSuspend. It should only check the state not the Actor performing that state change.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@804199 13f79535-47bb-0310-9956-ffa450edef68
| -rw-r--r-- | java/systests/src/main/java/org/apache/qpid/server/logging/SubscriptionLoggingTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/java/systests/src/main/java/org/apache/qpid/server/logging/SubscriptionLoggingTest.java b/java/systests/src/main/java/org/apache/qpid/server/logging/SubscriptionLoggingTest.java index 2274af520b..d97ed71607 100644 --- a/java/systests/src/main/java/org/apache/qpid/server/logging/SubscriptionLoggingTest.java +++ b/java/systests/src/main/java/org/apache/qpid/server/logging/SubscriptionLoggingTest.java @@ -359,8 +359,11 @@ public class SubscriptionLoggingTest extends AbstractTestLogging // INFO - MESSAGE [vh(/test)/qu(example.queue)] [sub:6(qu(example.queue))] SUB-1003 : State : SUSPENDED // The second will be by the connnection as it acknowledges and activates the subscription // INFO - MESSAGE [con:6(guest@anonymous(26562441)/test)/ch:3] [sub:6(qu(example.queue))] SUB-1003 : State : ACTIVE - // The final one will be the subscription suspending as part of the SubFlushRunner + // The final one can be the subscription suspending as part of the SubFlushRunner or the processQueue thread + // As a result validating the actor is more complicated and doesn't add anything. The goal of this test is + // to ensure the State is correct not that a particular Actor performs the logging. // INFO - MESSAGE [sub:6(vh(test)/qu(example.queue))] [sub:6(qu(example.queue))] SUB-1003 : State : SUSPENDED +// INFO - MESSAGE [vh(/test)/qu(example.queue)] [sub:6(qu(example.queue))] SUB-1003 : State : SUSPENDED assertEquals("Result set larger than expected.", 3, results.size()); @@ -387,10 +390,7 @@ public class SubscriptionLoggingTest extends AbstractTestLogging expectedState = "SUSPENDED"; log = getLog(results.get(2)); validateSubscriptionState(log, expectedState); - // Validate we have a subscription Actor - actor = fromActor(log); - assertTrue("The actor is not a subscription actor:" + actor, actor.startsWith("sub:")); - + // We only need validate the state. } catch (AssertionFailedError afe) { |
