public void testCatalogUpgradeWithBadStaticInitProcedure() throws IOException, ProcCallException, InterruptedException {
// Connect the client to HostId 0 to ensure that the new procedure's static initializer will fault
// during the catalog compilation.
Client client = getClientToHostId(0);
loadSomeData(client, 0, 10);
client.drain();
assertTrue(callbackSuccess);
String tweakedJarPath = upgradeCatalogBasePath + "-tweaked.jar";
OutputWatcher watcher = new OutputWatcher("Failed to generate upgraded catalog", 20, TimeUnit.MILLISECONDS);
((LocalCluster)m_config).setOutputWatcher(watcher);