Skip to content
Snippets Groups Projects
Commit f6188868 authored by Guillaume Valadon's avatar Guillaume Valadon Committed by GitHub
Browse files

Merge pull request #676 from gpotter2/fix-pypy-tests1

Fix pipetools tests
parents 3a2d7bb8 85e91cf2
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,6 @@ s > d1 > c ...@@ -42,7 +42,6 @@ s > d1 > c
p = PipeEngine(s) p = PipeEngine(s)
p.start() p.start()
time.sleep(1)
p.wait_and_stop() p.wait_and_stop()
= Test add_pipe on running instance = Test add_pipe on running instance
...@@ -67,6 +66,7 @@ s > d1 > c ...@@ -67,6 +66,7 @@ s > d1 > c
p.add(s) p.add(s)
time.sleep(1) time.sleep(1)
p.wait_and_stop() p.wait_and_stop()
assert test_val == "hello" assert test_val == "hello"
...@@ -130,7 +130,6 @@ p.list_pipes_detailed() ...@@ -130,7 +130,6 @@ p.list_pipes_detailed()
= Test RawConsoleSink with CLIFeeder = Test RawConsoleSink with CLIFeeder
p = PipeEngine() p = PipeEngine()
p.start()
s = CLIFeeder() s = CLIFeeder()
s.send("hello") s.send("hello")
...@@ -144,14 +143,14 @@ c._write_pipe = w ...@@ -144,14 +143,14 @@ c._write_pipe = w
s > d1 > c s > d1 > c
p.add(s) p.add(s)
time.sleep(1) p.start()
p.wait_and_stop()
assert os.read(r, 20) == "hello\n" assert os.read(r, 20) == "hello\n"
p.wait_and_stop()
= Test QueueSink with CLIFeeder = Test QueueSink with CLIFeeder
p = PipeEngine() p = PipeEngine()
p.start()
s = CLIFeeder() s = CLIFeeder()
s.send("hello") s.send("hello")
...@@ -162,7 +161,8 @@ c = QueueSink(name="c") ...@@ -162,7 +161,8 @@ c = QueueSink(name="c")
s > d1 > c s > d1 > c
p.add(s) p.add(s)
time.sleep(1) p.start()
p.wait_and_stop() p.wait_and_stop()
assert c.recv() == "hello" assert c.recv() == "hello"
...@@ -176,7 +176,6 @@ class TestSink(Sink): ...@@ -176,7 +176,6 @@ class TestSink(Sink):
test_val = msg test_val = msg
p = PipeEngine() p = PipeEngine()
p.start()
s = CLIFeeder() s = CLIFeeder()
s.send("hello") s.send("hello")
...@@ -188,7 +187,8 @@ s > d1 ...@@ -188,7 +187,8 @@ s > d1
d1 >> c d1 >> c
p.add(s) p.add(s)
time.sleep(1) p.start()
p.wait_and_stop() p.wait_and_stop()
assert test_val == "hello" assert test_val == "hello"
...@@ -202,7 +202,6 @@ class TestSink(Sink): ...@@ -202,7 +202,6 @@ class TestSink(Sink):
test_val = msg test_val = msg
p = PipeEngine() p = PipeEngine()
p.start()
s = CLIHighFeeder() s = CLIHighFeeder()
s.send("hello") s.send("hello")
...@@ -214,6 +213,7 @@ s >> d1 ...@@ -214,6 +213,7 @@ s >> d1
d1 > c d1 > c
p.add(s) p.add(s)
time.sleep(1) p.start()
p.wait_and_stop() p.wait_and_stop()
assert test_val == "hello" assert test_val == "hello"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment