Sha256: ba142e3c92439073a7369a53a00335b9a6d9704d4c77a0878c5cdda1e587e609

Contents?: true

Size: 712 Bytes

Versions: 5

Compression:

Stored size: 712 Bytes

Contents

class ForeignHostWorkerSimulationListener < DeepTest::NullWorkerListener
  def starting(worker)
    # On a foreign host, there won't necessarily be a database for tests
    # to run against.  We simulate that by dropping them here.
    #
    # It's important that this happens as the first thing when the workers
    # are started, since this is the first listener event that would be
    # invoked on a foreign host.  before_starting_workers would be invoked
    # on the local host, which should have databases available as usual.
    #
    system "mysqladmin -u root -f drop sample_rails_project_development > /dev/null"
    system "mysqladmin -u root -f drop sample_rails_project_test > /dev/null"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jstorimer-deep-test-1.4.0 sample_rails_project/lib/foreign_host_worker_simulation_listener.rb
jstorimer-deep-test-1.3.0 sample_rails_project/lib/foreign_host_worker_simulation_listener.rb
jstorimer-deep-test-1.2.0 sample_rails_project/lib/foreign_host_worker_simulation_listener.rb
jstorimer-deep-test-1.1.0 sample_rails_project/lib/foreign_host_worker_simulation_listener.rb
jstorimer-deep-test-1.0.0 sample_rails_project/lib/foreign_host_worker_simulation_listener.rb