Skip to content

Commit ccf2488

Browse files
authored
add delay 200ms to the mock server to simulate the real latency (#187)
1 parent 8c56b5d commit ccf2488

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mocked_servers/https/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ app.get("/check-data", function (req, res) {
2525
app.all('/put-data*', function (req, res) {
2626
data = "success";
2727
numTransactions++;
28-
res.send('{}');
28+
setTimeout((function() {res.send("{}")}), 200);
2929
});
3030

3131
app.all('/', function (req, res) {

0 commit comments

Comments
 (0)