s3:torture: fix password timestamp checks on NetBSD
[samba.git] / source4 / torture / rpc / samr.c
index 55fbb448281ac8032467bcd8820d489c814845f2..94c646a91c11c4711ca04cea463f946c3e58c48d 100644 (file)
@@ -2674,7 +2674,7 @@ static bool test_QueryUserInfo_pwdlastset(struct dcerpc_pipe *p,
 }
 
 static bool test_SamLogon(struct torture_context *tctx,
-                         struct dcerpc_pipe *p, 
+                         struct dcerpc_pipe *p,
                          struct cli_credentials *test_credentials,
                          NTSTATUS expected_result)
 {
@@ -2891,7 +2891,7 @@ static bool test_SetPassword_pwdlastset(struct dcerpc_pipe *p,
        struct dcerpc_pipe *np = NULL;
 
        if (torture_setting_bool(tctx, "samba3", false)) {
-               delay = 1000000;
+               delay = 999999;
                printf("Samba3 has second granularity, setting delay to: %d\n",
                        delay);
        }
@@ -2908,7 +2908,7 @@ static bool test_SetPassword_pwdlastset(struct dcerpc_pipe *p,
        b->flags &= ~DCERPC_AUTH_OPTIONS;
        b->flags |= DCERPC_SCHANNEL | DCERPC_SIGN | DCERPC_SCHANNEL_128;
 
-       status = dcerpc_pipe_connect_b(tctx, &np, b, 
+       status = dcerpc_pipe_connect_b(tctx, &np, b,
                                       &ndr_table_netlogon,
                                       machine_credentials, tctx->ev, tctx->lp_ctx);
 
@@ -6181,7 +6181,7 @@ static bool test_ManyObjects(struct dcerpc_pipe *p,
        uint32_t i;
 
        struct policy_handle *handles = talloc_zero_array(tctx, struct policy_handle, num_total);
-       
+
        /* query */
 
        {