File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ namespace {
37
37
38
38
static void setenv (const std::string& name, const std::string& value) {
39
39
#ifdef _WIN32
40
- putenv (const_cast <char *>(std::string (name + " =" + value).c_str ()));
40
+ _putenv (const_cast <char *>(std::string (name + " =" + value).c_str ()));
41
41
#else
42
42
::setenv (name.c_str(), value.c_str(), 1);
43
43
#endif
@@ -244,7 +244,6 @@ TEST_F(ConnectionUnitTest, SslDefaultVerifyPaths) {
244
244
}
245
245
ASSERT_EQ (settings.socket_settings .ssl_context ->set_default_verify_paths (), CASS_OK)
246
246
<< " Failed to import default / system SSL certificates." ;
247
- ASSERT_EQ (std::remove (cert_path.c_str ()), 0 ) << " Failed to cleanup temporary certificate file." ;
248
247
249
248
// Ensure verification succeeds with this certificate.
250
249
State state;
@@ -254,6 +253,7 @@ TEST_F(ConnectionUnitTest, SslDefaultVerifyPaths) {
254
253
connector1->with_settings (settings)->connect (loop ());
255
254
uv_run (loop (), UV_RUN_DEFAULT);
256
255
EXPECT_EQ (state.status , STATUS_SUCCESS);
256
+ ASSERT_EQ (std::remove (cert_path.c_str ()), 0 ) << " Failed to cleanup temporary certificate file." ;
257
257
}
258
258
259
259
TEST_F (ConnectionUnitTest, Refused) {
You can’t perform that action at this time.
0 commit comments