summaryrefslogtreecommitdiff
path: root/qpid/java/test-profiles
diff options
context:
space:
mode:
authorRajith Muditha Attapattu <rajith@apache.org>2010-05-06 00:10:07 +0000
committerRajith Muditha Attapattu <rajith@apache.org>2010-05-06 00:10:07 +0000
commitce37ea331edac07423334e7052af33b7713e29ae (patch)
tree193cbf9765b1730a6aae930f3156d5ccb539a854 /qpid/java/test-profiles
parenta8fe4bc9331254f5624a811fc3bc0070e3ebcd21 (diff)
downloadqpid-python-ce37ea331edac07423334e7052af33b7713e29ae.tar.gz
The heartbeat wasn't being set properly and these mistakes went uncaught due to lack of proper test.
I have added a test case to AMQConnectionTest called testHeartBeat. This test fails once in a while even when I have an external script to clean the broker instance. It seems once it's wedged with kill -STOP, it somestimes doesn't get cleaned up properly with kill -9. Despite the occasional failure, I think it's worth to have this test as a lot of our users rely on heartbeat functionality. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@941553 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/test-profiles')
-rwxr-xr-xqpid/java/test-profiles/kill-broker25
1 files changed, 25 insertions, 0 deletions
diff --git a/qpid/java/test-profiles/kill-broker b/qpid/java/test-profiles/kill-broker
new file mode 100755
index 0000000000..e31d3811b3
--- /dev/null
+++ b/qpid/java/test-profiles/kill-broker
@@ -0,0 +1,25 @@
+
+#!/bin/bash
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#
+
+
+kill -9 $1