dynamoid icon indicating copy to clipboard operation
dynamoid copied to clipboard

Dynamoid conflicts with parallel rspec tests

Open emmahyde opened this issue 5 years ago • 3 comments

I have an application with two DynamoDB tables. In our integration runs, we run rspec with parallel tasks and threads. Unfortunately, we are running into an error where one class has deleted/cleared a table (using the DynamoidReset module described here as a spec helper) in one thread, and another tries to take an operation on a non-existing table. Is there a way to circumvent this besides namespacing every spec file to its own table?

emmahyde avatar Dec 22 '20 16:12 emmahyde

I have no idea how to solve this issue with current implementation of Dynamoid config. Table namespaces could help but there is only one global namespace. It could be changed but every model caches it (full table name, actually).

Dynamic configuring was asked in issues several times and I planned to implement it in the next versions.

andrykonchin avatar Dec 22 '20 19:12 andrykonchin

Hi,

Dynamic configuring was asked in issues several times and I planned to implement it in the next versions.

Has this already been implemented?

kyto64 avatar Sep 24 '23 03:09 kyto64

No, it hasn't been implemented yet.

andrykonchin avatar Sep 24 '23 17:09 andrykonchin