Summary: Apparently this test sometimes fails. @Gownta suggests it's because we're
storing temproaries in StringPiece. Change it to store in a std::string, which
should hopefully fix it.
Reviewed By: @Gownta
Differential Revision:
D2208643
struct StubLogger {
void operator()(StringPiece msg, double sec) {
- m = msg;
+ m = msg.str();
t = sec;
}
- static StringPiece m;
+ static std::string m;
static double t;
};
-StringPiece StubLogger::m = "";
+std::string StubLogger::m = "";
double StubLogger::t = 0;
struct StubClock {