Skip to content

Commit

Permalink
Updated to latest SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
timyates committed Apr 25, 2013
1 parent 96666d0 commit 3685bd8
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/test/resources/integration_tests/javascript/test_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
* limitations under the License.
*/

load("vertx.js");
load("vertx_tests.js");
var container = require( "container" ) ;
var vertx = require( "vertx" ) ;
var vertxTests = require( "vertx_tests" ) ;
var vassert = require( "vertx_assert" ) ;

var eb = vertx.eventBus;

Expand All @@ -26,15 +28,19 @@ var readyAddress = persistorConfig.address + '.ready'

var readyHandler = function( msg ) {
if( msg.status === 'ok' ) {
initTests( script ) ;
eb.unregisterHandler( readyAddress, readyHandler ) ;
vertxTests.startTests( script ) ;
}
} ;

// This will get called by the jdbc-persistor when it has installed the work-queue
eb.registerHandler( readyAddress, readyHandler ) ;

vertx.deployModule(java.lang.System.getProperty( 'vertx.modulename' ), persistorConfig, 1, function() {} ) ;
container.deployModule( java.lang.System.getProperty( 'vertx.modulename' ), persistorConfig, 1, function(err, deployID) {
if (err != null) {
err.printStackTrace();
}
} ) ;

function checkStatus() {
eb.send( 'test.persistor', {
Expand Down

0 comments on commit 3685bd8

Please sign in to comment.