Skip to content
This repository was archived by the owner on Feb 25, 2021. It is now read-only.
This repository was archived by the owner on Feb 25, 2021. It is now read-only.

Issues with Windows #44

@Oceanswave

Description

@Oceanswave

Unfortunately, I'm seeing that seeing that SandCastle doesn't seem to execute scripts under windows.

var SandCastle = require('sandcastle').SandCastle;

var sandcastle = new SandCastle();

var script = sandcastle.createScript("\
  exports.main = function() {\
    exit('Hey ' + name + ' Hello World!');\
  }\
");

script.on('exit', function(err, output) {
    console.log(output); // Hello World!
});

script.on('timeout', function() {
    console.log('I timed out, oh what a silly script I am!');
});

script.run({name: 'Ben'});

results in a timeout

I timed out, oh what a silly script I am!

When using the Pool nothing seems to happen... no timeout, nothing.

var Pool = require('sandcastle').Pool;

var poolOfSandcastles = new Pool( { numberOfInstances: 3 }, { timeout: 6000 } );

var script = poolOfSandcastles.createScript("\
  exports.main = function() {\
    exit('Hello World!');\
  }\
");

script.on('exit', function(err, output) {
    console.log(output);
});

script.on('timeout', function(err, output) {
    console.log('I timed out, oh what a silly script I am!');
});

script.run({name: 'Ben'});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions