Skip to content

Error when writing to database in tests file #678

@indigotechtutorials

Description

@indigotechtutorials

I am using this gem to interact with sqlite3 using db.execute command to insert new records into table

I started writing tests for my app using minitest and now I'm seeing this error when running my test file with multiple methods trying to write to database I think its because of parallel running but I'm not sure why I can't write to the database at the same time as another process is.

SQLite3::ReadOnlyException: attempt to write a readonly database

Any ideas on how to get around this? I could try to make my tests run one at a time but I'd like to find a solution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions