Fix /redwood/correctness/EnforceEncodingType unit test (#9095)

The unit test intentionally cause unexpected_encoding_type being thrown, which would hit a simulation only assert failure. Disabling that assert in this case.
This commit is contained in:
Yi Wu 2023-01-06 14:13:59 -08:00 committed by GitHub
parent a444bcdf39
commit 5d6ba48da0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -8030,7 +8030,8 @@ public:
// Run the destructive sanity check, but don't throw.
ErrorOr<Void> err = wait(errorOr(self->m_tree->clearAllAndCheckSanity()));
// If the test threw an error, it must be an injected fault or something has gone wrong.
ASSERT(!err.isError() || err.getError().isInjectedFault());
ASSERT(!err.isError() || err.getError().isInjectedFault() ||
err.getError().code() == error_code_unexpected_encoding_type);
}
} else {
// The KVS user shouldn't be holding a commit future anymore so self shouldn't either.