Closed
Description
At now it is required to write integration tests with Tarantool to test the code written using go-tarantool
. I saw this problem while writing tests for tt. I couldn't mock the workflow:
ret := some_code_to_test(mockConnectorObject) {
// some code to test
future := mockConnectorObject.Do(someRequest)
mock_response, mock_err := future.Get()
// more code to test
}
if ret != expected {
t.Errorf("test failed")
}
It would be great to have that ability.