Skip to content

Commit

Permalink
Multiple testing processes with xdist all try to create the same runt…
Browse files Browse the repository at this point in the history
…ime keyspace (#125)

* Detect database exists exception
* Create the test keyspace not the runtime keyspace
  • Loading branch information
andydawkins authored and r4fek committed Jan 30, 2019
1 parent b0cc1fb commit 64bb345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_cassandra_engine/base/creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def create_test_db(self, verbosity=1, autoclobber=False, **kwargs):
replication_factor = replication_opts.pop('replication_factor', 1)

create_keyspace_simple(
self.connection.settings_dict['NAME'],
test_database_name,
replication_factor,
connections=[self.connection.alias])

Expand Down

0 comments on commit 64bb345

Please sign in to comment.