mercredi 6 janvier 2016

Can't create parallel database with parallel_tests with zeus

i have an issus with zeus-parallel_tests and his initialization :

my gemfile :

group :development, :test do
  gem "sqlite3"
  gem "rspec-rails"
  gem "rspec-its"
  gem "guard-rspec"
  gem "quiet_assets"
  gem "dotenv-rails"
  gem "parallel_tests"
  gem "zeus-parallel_tests"
end

then bundle, all right

my database.yml configuration :

connection: &connection
  adapter: postgresql
  host: localhost
  username: ********
  password: ********
  encoding: utf8
  min_messages: warning

development:
  database: app_development
  <<: *connection

test:
  database: app_test<%= ENV['TEST_ENV_NUMBER'] %>
  <<: *connection

production:
  database: app_production
  <<: *connection

then zeus-parallel_tests init for create my custom_plan.rb and zeus.json all right

but when i try to create my parallels databases (i have an i7 with 8 threads) i have a weird message :

> rake parallel:create
app_development already exists
app_development already exists
app_development already exists
app_development already exists
app_development already exists
app_development already exists
app_development already exists
app_development already exists

With parallel try to duplicate my development database ? i attemp he duplicate my app_test database

> rake parallel:drop
> rake parallel:create
PG::Error: ERROR:  duplicate key value violates unique constraint "pg_database_datname_index"
DETAIL:  Key (datname)=(app_development) already exists.
: CREATE DATABASE "app_development" ENCODING = 'utf8'

and

/vendor/bundle/gems/activesupport-4.1.13/lib/active_support/notifications/instrumenter.rb:20:in `instrument'PG::Error: ERROR:  duplicate key value violates unique constraint "pg_database_datname_index"

and i have only 1 app_test database and 1 app_development database after my manipulation..

Any idea ? i don't touch custom_plan.rb and zeus.json zeus is ok rspec is ok Ruby = 2.1.3 Rails = 4.1.13

Aucun commentaire:

Enregistrer un commentaire