Skip to content

Problems with setup and teardown Tarantool in tests #147

Open
@ligurio

Description

@ligurio
  1. Tarantool process is not killed when tests fail with panic(). I don't know why. The test has a line defer test_helpers.StopTarantoolWithCleanup(instance), according to blog post Defer, Panic, and Recover deferred function should be executed eve in case of panic():

Panic is a built-in function that stops the ordinary flow of control and begins panicking. When the function F calls panic, execution of F stops, any deferred functions in F are executed normally, and then F returns to its caller. To the caller, F then behaves like a call to panic. The process continues up the stack until all functions in the current goroutine have returned, at which point the program crashes. Panics can be initiated by invoking panic directly. They can also be caused by runtime errors, such as out-of-bounds array accesses.

  1. on next attempt to run tests StartTarantool() is not failed when Tarantool is already run on the same TCP port

Version: d3b5696

Metadata

Metadata

Assignees

No one assigned

    Labels

    2spbugSomething isn't workingteamE

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions