Skip to content

controller.calculateProfit doesn't work properly with sqlite database #321

@magicaleks

Description

@magicaleks

In this test replace

require.NoError(t, err)

with

require.NoError(t, err)
defer func() {
	os.RemoveAll(file.Name())
}()

storage, err := storage.FromSQL(sqlite.Open(file.Name()), &gorm.Config{})
require.NoError(t, err)

and run this test. You will see the following error:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions