Skip to content

Commit

Permalink
testing on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
evantahler committed Mar 18, 2012
1 parent e68b04a commit 6453a91
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions spec/api_actionCluster.js
Expand Up @@ -320,14 +320,16 @@ suite.addBatch({
}

var cb = this.callback;
var results = [];
apis[0].actionCluster.cache.destroy(apis[0], "test_key_again", hostsWhichUsedCache[1].host + ":" + hostsWhichUsedCache[1].port, function(resp){
results.push(resp);
apis[0].actionCluster.cache.load(apis[0], "test_key_again", function(resp2){
results.push(resp2);
cb(results);
})
});
setTimeout(function(){
var results = [];
apis[0].actionCluster.cache.destroy(apis[0], "test_key_again", hostsWhichUsedCache[1].host + ":" + hostsWhichUsedCache[1].port, function(resp){
results.push(resp);
apis[0].actionCluster.cache.load(apis[0], "test_key_again", function(resp2){
results.push(resp2);
cb(results);
})
});
}, (apis[0].configData.actionCluster.remoteTimeoutWaitMS * 2))
},
'delete resp for single peer': function(a,b){
resp = a[0];
Expand Down

0 comments on commit 6453a91

Please sign in to comment.