Remove unnecessary try/catch

This commit is contained in:
Andrew Noyes 2019-05-28 11:39:14 -07:00
parent bc03421d05
commit 47ce784ee7
1 changed files with 3 additions and 7 deletions

View File

@ -194,13 +194,9 @@ struct DifferentClustersSameRVWorkload : TestWorkload {
tr2.setVersion(rv);
state Future<Optional<Value>> val1 = tr1.get(self->keyToRead);
state Future<Optional<Value>> val2 = tr2.get(self->keyToRead);
try {
wait(success(val1) && success(val2));
// We're reading from different db's with the same read version. We can get a different value.
TEST(val1.get() != val2.get());
} catch (...) {
throw;
}
wait(success(val1) && success(val2));
// We're reading from different db's with the same read version. We can get a different value.
TEST(val1.get() != val2.get());
} catch (Error& e) {
wait(tr1.onError(e) && tr2.onError(e));
}