Skip to content

Commit

Permalink
Added test server
Browse files Browse the repository at this point in the history
  • Loading branch information
Phara0h committed May 28, 2019
1 parent 368283e commit a347e1f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
1 change: 0 additions & 1 deletion _config.yml

This file was deleted.

16 changes: 16 additions & 0 deletions test/test-http-server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

const port = 1234;
const http = require('http');
const hostname = '0.0.0.0';


const server = http.createServer((req,res)=>{
res.statusCode = Math.floor(Math.random() * 2) ? 200 : 400;
res.end();
});



server.listen(port, hostname, () => {
console.log(`Server running at http://${hostname}:${port}/`);
});

0 comments on commit a347e1f

Please sign in to comment.