-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(issue65): add manual test for issue #65
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); }); |