From 0f6c8d50a99997ac7829864b1c93362b50f1bbf3 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Sun, 25 May 2003 01:54:13 +0000 Subject: Porting to LUA 5.0 final --- test/ftptest.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test/ftptest.lua') diff --git a/test/ftptest.lua b/test/ftptest.lua index ee3af91..6ba61a4 100644 --- a/test/ftptest.lua +++ b/test/ftptest.lua @@ -1,5 +1,3 @@ -dofile("noglobals.lua") - local similar = function(s1, s2) return string.lower(string.gsub(s1, "%s", "")) == @@ -34,7 +32,7 @@ end local index, err, saved, back, expected -local t = socket._time() +local t = socket.time() index = readfile("test/index.html") @@ -112,4 +110,4 @@ back, err = socket.ftp.get("ftp://localhost/index.wrong.html;type=a") check(err, err) print("passed all tests") -print(string.format("done in %.2fs", socket._time() - t)) +print(string.format("done in %.2fs", socket.time() - t)) -- cgit v1.2.3-55-g6feb