ContinuumIO / libhdfs3-downstream

a native c/c++ hdfs client (downstream fork from apache-hawq)
Apache License 2.0
40 stars 54 forks source link

Fix unittest compilation #14

Closed sk1p closed 6 years ago

sk1p commented 6 years ago

It seems that unit tests were not kept up to date, this is my attempt to fix them. Now they at least compile. Most of them also run, but TestCheckResponse_InvalidCallId results in the following message in a loop:

GMOCK WARNING:
Uninteresting mock function call - returning default value.
    Function call: poll(true, false, 3598193)
          Returns: false
NOTE: You can safely ignore the above warning unless this call should not happen.  Do not suppress it by blindly adding an EXPECT_CALL() if you don't mean to enforce the call.  See https://github.com/google/googletest/blob/master/googlemock/docs/CookBook.md#knowing-when-to-expect for details.

No idea how to fix that one though.