Skip to content

Commit

Permalink
test(issue65): add manual test for issue #65
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Dec 15, 2015
1 parent ded43e0 commit 1d9dd65
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/manual/issue65.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
'use strict';
var virt = require('../..'),
fixture = require('../lib/helper').fixture;

// NOTE: you must run this manual test with `--expose-gc` to
// trigger the bug!

// continuously run gc every 1ms
if (global.gc) setInterval(global.gc, 1);

var xml = fixture('storage_volume.xml');
var hv = new virt.Hypervisor('test:///default');
return hv.connectAsync()
.then(function() { return hv.lookupStoragePoolByNameAsync('default-pool'); })
.then(function(pool) { return pool.createVolumeAsync(xml); })
.delay(2000)
.then(function() { return hv.disconnectAsync(); })
.then(function() { console.log('success'); })
.catch(function(err) { console.log('error: ', err); });

0 comments on commit 1d9dd65

Please sign in to comment.