-
Notifications
You must be signed in to change notification settings - Fork 17
Fix/tests/cleanup #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
aensidhe
commented
Oct 26, 2016
- Fix tests to be deterministic
- Fix error in EVAL semantic
- Fix error in CALL semantic
- Implement CALL 1.7 semantic
- Handle nulls in response
…ts via the instance Connect and ConnectAsync methods` on Linux
| { | ||
| var hashCode = EqualityComparer<T1>.Default.GetHashCode(Item1); | ||
| return hashCode; | ||
| unchecked |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need unchecked{} section here?
What about other TarantoolTuple classes (<T1,T2> and so on)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@roman-kozachenko in this class - no we do not need. But we need it in other classes. So, as this code is autogenerated, I will not edit it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aensidhe Actually I already found that, forgot to remove comment
| var singleNode = options.ConnectionOptions.Nodes.Single(); | ||
|
|
||
| _socket = new Socket(SocketType.Stream, ProtocolType.Tcp); | ||
| #if PROGAUDI_NETCORE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you don't need that #if anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
| box.once('init', init) | ||
| function return_scalar() | ||
| return 1 | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you test what happens when you call a function without return statement?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@roman-kozachenko ok. I added tests and separate overload for call for this
| if (_clientOptions.LogWriter == null) | ||
| return; | ||
|
|
||
| var builder = new StringBuilder("Warning: can't match request via requestId from response. Response:"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extract to separate method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done