fix network_http test
This commit is contained in:
parent
ee7ae3b9f6
commit
2204cb795e
@ -3,6 +3,9 @@ local response_received = false
|
|||||||
network.get("https://api.github.com/repos/MihailRis/VoxelEngine-Cpp/releases/latest", function (s)
|
network.get("https://api.github.com/repos/MihailRis/VoxelEngine-Cpp/releases/latest", function (s)
|
||||||
print(json.parse(s).name)
|
print(json.parse(s).name)
|
||||||
response_received = true
|
response_received = true
|
||||||
|
end, function (code)
|
||||||
|
print("repond with code", code)
|
||||||
|
response_received = true
|
||||||
end)
|
end)
|
||||||
|
|
||||||
app.sleep_until(function () return response_received end, nil, 10)
|
app.sleep_until(function () return response_received end, nil, 10)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user