mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
s4:torture: remove an unused variable and bogus check from the defer_open test
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
4639f6d7ba
commit
5c6a1da82c
@ -649,7 +649,6 @@ test the timing of deferred open requests
|
||||
static bool run_deferopen(struct torture_context *tctx, struct smbcli_state *cli, int dummy)
|
||||
{
|
||||
const char *fname = "\\defer_open_test.dat";
|
||||
int retries=4;
|
||||
int i = 0;
|
||||
bool correct = true;
|
||||
int nsec;
|
||||
@ -660,11 +659,6 @@ static bool run_deferopen(struct torture_context *tctx, struct smbcli_state *cli
|
||||
msec = nsec / 1000;
|
||||
sec = ((double)nsec) / ((double) 1000000);
|
||||
|
||||
if (retries <= 0) {
|
||||
torture_comment(tctx, "failed to connect\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
torture_comment(tctx, "Testing deferred open requests.\n");
|
||||
|
||||
while (i < 4) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user