Skip to content

Test code is executed immidiatelly #98

Description

@benedeki

Describe the bug

Test code in method DBTestSuite.test is executed immediately instead of provided to ancestor as code.

Steps to Reproduce

See this part:

   val dbTestFun = {
      try {
        testFun
      }
      finally {
        if (connectionInfo.persistData) {
          dbConnection.connection.commit()
        } else {
          dbConnection.connection.rollback()
        }
      }
    }

Expected state

    val dbTestFun: () => Unit = () => {
      try {
        testFun
      }
      finally {
        if (connectionInfo.persistData) {
          dbConnection.connection.commit()
        } else {
          dbConnection.connection.rollback()
        }
      }
    }

Impact / Severity

Medium

Attachments / Evidence

No response

Desktop

No response

Related / References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status
    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions