Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support stdout verification when making requests to servers #28

Open
geek opened this issue Dec 11, 2013 · 0 comments
Open

Support stdout verification when making requests to servers #28

geek opened this issue Dec 11, 2013 · 0 comments

Comments

@geek
Copy link
Contributor

geek commented Dec 11, 2013

Suppose the setup.js needs to make a HTTP request to the solution and submission servers. The verification isn't in the response but in the stdout from each server.

The following doesn't work for setup.js

// Require modules

var hyperquest = require('hyperquest');


module.exports = function (run) {

    setTimeout(function () {

        hyperquest.get('http://localhost:8080/');
        if (!run) {
            hyperquest.get('http://localhost:8081/');
        }
    }, 500);

    return {
        submissionArgs: [8080],
        solutionArgs: [8081]
    };
};

And suppose the solution just does a console.log in the handler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant