overall: Adding `IgnoreError()` where Status was discarded
Bug: 387
Change-Id: I720b7a99a1c7a24eb8e2554629529d1e24394cb1
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/49041
Reviewed-by: Keir Mierle <keir@google.com>
Commit-Queue: Keir Mierle <keir@google.com>
diff --git a/pw_blob_store/blob_store_chunk_write_test.cc b/pw_blob_store/blob_store_chunk_write_test.cc
index 3dabaa8..becb23d 100644
--- a/pw_blob_store/blob_store_chunk_write_test.cc
+++ b/pw_blob_store/blob_store_chunk_write_test.cc
@@ -34,18 +34,22 @@
BlobStoreChunkTest() : flash_(kFlashAlignment), partition_(&flash_) {}
void InitFlashTo(std::span<const std::byte> contents) {
- partition_.Erase();
+ partition_.Erase()
+ .IgnoreError(); // TODO(pwbug/387): Handle Status properly
std::memcpy(flash_.buffer().data(), contents.data(), contents.size());
}
void InitSourceBufferToRandom(uint64_t seed) {
- partition_.Erase();
+ partition_.Erase()
+ .IgnoreError(); // TODO(pwbug/387): Handle Status properly
random::XorShiftStarRng64 rng(seed);
- rng.Get(source_buffer_);
+ rng.Get(source_buffer_)
+ .IgnoreError(); // TODO(pwbug/387): Handle Status properly
}
void InitSourceBufferToFill(char fill) {
- partition_.Erase();
+ partition_.Erase()
+ .IgnoreError(); // TODO(pwbug/387): Handle Status properly
std::memset(source_buffer_.data(), fill, source_buffer_.size());
}