Ver código fonte

try to activate SecureChannel_timeout_fail

StalderT 7 anos atrás
pai
commit
533f043c67
1 arquivos alterados com 3 adições e 4 exclusões
  1. 3 4
      tests/client/check_client_securechannel.c

+ 3 - 4
tests/client/check_client_securechannel.c

@@ -69,7 +69,7 @@ START_TEST(SecureChannel_timeout_max) {
     UA_Client_delete(client);
 }
 END_TEST
-/*
+
 START_TEST(SecureChannel_timeout_fail) {
     UA_Client *client = UA_Client_new(UA_ClientConfig_default);
     UA_StatusCode retval = UA_Client_connect(client, "opc.tcp://localhost:4840");
@@ -88,7 +88,7 @@ START_TEST(SecureChannel_timeout_fail) {
     UA_Client_disconnect(client);
     UA_Client_delete(client);
 }
-END_TEST*/
+END_TEST
 
 START_TEST(SecureChannel_networkfail) {
     UA_Client *client = UA_Client_new(UA_ClientConfig_default);
@@ -117,8 +117,7 @@ int main(void) {
     TCase *tc_sc = tcase_create("Client SecureChannel");
     tcase_add_checked_fixture(tc_sc, setup, teardown);
     tcase_add_test(tc_sc, SecureChannel_timeout_max);
-    // Temporarily disable test since it is failing. See #1388
-    //tcase_add_test(tc_sc, SecureChannel_timeout_fail);
+    tcase_add_test(tc_sc, SecureChannel_timeout_fail);
     tcase_add_test(tc_sc, SecureChannel_networkfail);
 
     Suite *s = suite_create("Client");