Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(747)

Unified Diff: common/system/filesystem/filesystem_test.go

Issue 2963503003: [errors] Greatly simplify common/errors package. (Closed)
Patch Set: fix nits Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « common/system/filesystem/filesystem.go ('k') | common/system/prober/probe.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/system/filesystem/filesystem_test.go
diff --git a/common/system/filesystem/filesystem_test.go b/common/system/filesystem/filesystem_test.go
index 0deb1a5f7a62f0466cb11f4716ada55879a5a9e1..6c346bd3a7a2985c65853d5831056daac44b8256 100644
--- a/common/system/filesystem/filesystem_test.go
+++ b/common/system/filesystem/filesystem_test.go
@@ -53,7 +53,7 @@ func TestIsNotExist(t *testing.T) {
So(IsNotExist(errors.New("something")), ShouldBeFalse)
So(IsNotExist(err), ShouldBeTrue)
- So(IsNotExist(errors.Annotate(err).Reason("annotated").Err()), ShouldBeTrue)
+ So(IsNotExist(errors.Annotate(err, "annotated").Err()), ShouldBeTrue)
})
})
}
« no previous file with comments | « common/system/filesystem/filesystem.go ('k') | common/system/prober/probe.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698