mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
move some tests around
This commit is contained in:
parent
9887c6e1e6
commit
de54a9e862
16
libs/network/esp8266/tests/projects/socket-test-err2.js
Normal file
16
libs/network/esp8266/tests/projects/socket-test-err2.js
Normal file
@ -0,0 +1,16 @@
|
||||
function test() {
|
||||
var req = require("http").get("http://h.voneicken.com:1234/ping", function(res) {
|
||||
res.on('data', function(data) { console.log("DATA <" + data + ">"); });
|
||||
res.on('close', function(e) { console.log("RES CLOSED, had error: ", e); });
|
||||
res.on('error', function(e) { console.log("RES ERROR: ", e); });
|
||||
console.log("RES:", res);
|
||||
});
|
||||
req.on("error", function(e) {
|
||||
console.log("REQ ERROR: ", e);
|
||||
});
|
||||
req.on("close", function(e) {
|
||||
console.log("REQ CLOSED, had error: ", e);
|
||||
});
|
||||
console.log("REQ:", req);
|
||||
}
|
||||
test();
|
||||
Loading…
x
Reference in New Issue
Block a user