diff options
-rw-r--r-- | subplot.py | 5 | ||||
-rw-r--r-- | subplot.yaml | 12 | ||||
-rw-r--r-- | subplotlib/subplot-rust-support.rs | 5 |
3 files changed, 0 insertions, 22 deletions
@@ -1,7 +1,6 @@ import json import os import shutil -import time # A shell script to run the subplot binary from the source directory's Rust @@ -113,7 +112,3 @@ def binary(basename): def do_nothing(ctx): pass - - -def sleep_seconds(ctx, delay="1"): - time.sleep(int(delay)) diff --git a/subplot.yaml b/subplot.yaml index 12a9fae..5ad35aa 100644 --- a/subplot.yaml +++ b/subplot.yaml @@ -81,18 +81,6 @@ rust: function: file_ends_in_two_newlines -# In order to cope with low granularity filesystems, sometimes we need to wait -# for things to happen -- when: I wait until (?P<delay>\d+) seconds? has passed - impl: - python: - function: sleep_seconds - rust: - function: sleep_seconds - regex: true - types: - delay: uint - # The following are purely descriptive steps and are not used to test anything - given: the necessary starting conditions diff --git a/subplotlib/subplot-rust-support.rs b/subplotlib/subplot-rust-support.rs index 95dc3f5..b502e7a 100644 --- a/subplotlib/subplot-rust-support.rs +++ b/subplotlib/subplot-rust-support.rs @@ -179,11 +179,6 @@ fn file_ends_in_two_newlines(context: &Datadir, filename: &str) { } #[step] -fn sleep_seconds(_context: &Datadir, delay: u64) { - std::thread::sleep(std::time::Duration::from_secs(delay)); -} - -#[step] #[context(Datadir)] #[context(Runcmd)] fn json_output_matches_file(context: &ScenarioContext, filename: &str) { |