diff options
Diffstat (limited to 'third_party/nix/src/tests/language-tests.cc')
-rw-r--r-- | third_party/nix/src/tests/language-tests.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/third_party/nix/src/tests/language-tests.cc b/third_party/nix/src/tests/language-tests.cc index 189e1ede5c37..46e8c6ea80f7 100644 --- a/third_party/nix/src/tests/language-tests.cc +++ b/third_party/nix/src/tests/language-tests.cc @@ -257,9 +257,10 @@ class EvalStoreSuccessTest // Test pattern for files that should evaluate successfully but require a real // store. TEST_P(EvalStoreSuccessTest, Succeeds) { - std::unique_ptr<nix::LocalStore> store_ = - OpenTemporaryStore().ConsumeValueOrDie(); - ref<Store> store = ref<Store>(store_.release()); + absl::StatusOr<std::unique_ptr<nix::LocalStore>> store_ = + OpenTemporaryStore(); + CHECK(store_.ok()) << "failed to open temporary store"; + ref<Store> store = ref<Store>(store_->release()); EvalState state({}, store); auto path = GetParam(); |