diff --git a/tools/mig-test/datastream/run_migration_test.rb b/tools/mig-test/datastream/run_migration_test.rb index deb16b0f074..190d433e5e0 100644 --- a/tools/mig-test/datastream/run_migration_test.rb +++ b/tools/mig-test/datastream/run_migration_test.rb @@ -19,7 +19,7 @@ require 'pathname' require 'securerandom' -WAITING_SECONDS = 20 +WAITING_SECONDS = 30 FLINK_HOME = ENV['FLINK_HOME'] throw 'Unspecified `FLINK_HOME` environment variable.' if FLINK_HOME.nil? FLINK_HOME = Pathname.new(FLINK_HOME).realpath @@ -37,7 +37,7 @@ def put_mystery_data(mystery) end def ensure_mystery_data(mystery) - throw StandardError, 'Failed to get specific mystery string' unless `cat #{FLINK_HOME}/log/*.out`.include? mystery + raise StandardError, 'Failed to get specific mystery string' unless `cat #{FLINK_HOME}/log/*.out`.include? mystery end puts ' Waiting for source to start up...' diff --git a/tools/mig-test/run_migration_test.rb b/tools/mig-test/run_migration_test.rb index bb111252cbf..ddf7638e6fb 100644 --- a/tools/mig-test/run_migration_test.rb +++ b/tools/mig-test/run_migration_test.rb @@ -19,7 +19,7 @@ require 'pathname' require 'securerandom' -WAITING_SECONDS = 20 +WAITING_SECONDS = 30 FLINK_HOME = ENV['FLINK_HOME'] throw 'Unspecified `FLINK_HOME` environment variable.' if FLINK_HOME.nil? FLINK_HOME = Pathname.new(FLINK_HOME).realpath @@ -37,7 +37,7 @@ def put_mystery_data(mystery) end def ensure_mystery_data(mystery) - throw StandardError, 'Failed to get specific mystery string' unless `cat #{FLINK_HOME}/log/*.out`.include? mystery + raise StandardError, 'Failed to get specific mystery string' unless `cat #{FLINK_HOME}/log/*.out`.include? mystery end def extract_job_id(output)