From f8ab525ef0fa6d84789211b85cf80bbdf25c0619 Mon Sep 17 00:00:00 2001 From: Mehrdad Date: Mon, 20 Jun 2016 16:51:18 -0700 Subject: [PATCH] Removing asdfasdf.txt --- test/runtest.py | 18 ------------------ test/test_functions.py | 7 ------- 2 files changed, 25 deletions(-) diff --git a/test/runtest.py b/test/runtest.py index df1ff0d52..1f9a189a1 100644 --- a/test/runtest.py +++ b/test/runtest.py @@ -123,24 +123,6 @@ class ObjStoreTest(unittest.TestCase): services.cleanup() -class SchedulerTest(unittest.TestCase): - - def testRemoteTask(self): - worker_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "test_worker.py") - [w] = services.start_singlenode_cluster(return_drivers=True, num_workers_per_objstore=1, worker_path=worker_path) - - value_before = "test_string" - objref = w.submit_task("test_functions.print_string", [value_before]) - - time.sleep(0.2) - - value_after = ray.pull(objref[0], w) - self.assertEqual(value_before, value_after) - - time.sleep(0.1) - - services.cleanup() - class WorkerTest(unittest.TestCase): def testPushPull(self): diff --git a/test/test_functions.py b/test/test_functions.py index 34ddcaa6e..3509271e6 100644 --- a/test/test_functions.py +++ b/test/test_functions.py @@ -4,13 +4,6 @@ import numpy as np # Test simple functionality -@ray.remote([str], [str]) -def print_string(string): - print "called print_string with", string - f = open("asdfasdf.txt", "w") - f.write("successfully called print_string with argument {}.".format(string)) - return string - @ray.remote([int, int], [int, int]) def handle_int(a, b): return a + 1, b + 1