Fix test_event
If the logged line is found, it is not an error, if it is not, it is.
This commit is contained in:
@ -483,7 +483,7 @@ int test_logging()
|
|||||||
|
|
||||||
// Short sleep to increase the likelyhood that the logged message ends
|
// Short sleep to increase the likelyhood that the logged message ends
|
||||||
// ends up where we expect it to be.
|
// ends up where we expect it to be.
|
||||||
sleep(1);
|
sleep(2);
|
||||||
|
|
||||||
bool found = false;
|
bool found = false;
|
||||||
|
|
||||||
@ -502,7 +502,7 @@ int test_logging()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return found ? 1 : 0;
|
return found ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user