Do not flush the stream when you're just going to convert it to string.

This commit is contained in:
Nick Thompson 2021-04-13 14:37:20 -04:00
parent 294624adf5
commit cddb6f7b6d

@ -875,8 +875,8 @@ static inline VTKM_CONT void CheckPortal(const PortalType& portal)
if (!test_equal(expectedValue, foundValue))
{
std::stringstream message;
message << "Got unexpected value in array." << std::endl
<< "Expected: " << expectedValue << ", Found: " << foundValue << std::endl;
message << "Got unexpected value in array. Expected: " << expectedValue
<< ", Found: " << foundValue << "\n";
VTKM_TEST_FAIL(message.str().c_str());
}
}