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

Unified Diff: ct/go/util/util_test.go

Issue 777413002: Add new tests to presubmit, fix errors (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: rebase Created 6 years 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 | « ct/go/util/gs.go ('k') | go/gitinfo/gitinfo.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ct/go/util/util_test.go
diff --git a/ct/go/util/util_test.go b/ct/go/util/util_test.go
index ea0b069f46d413dbfd5590f11cde2d7d9be2651c..efa894097a5d8825ad8e3ae6e1089131d8f4357a 100644
--- a/ct/go/util/util_test.go
+++ b/ct/go/util/util_test.go
@@ -55,7 +55,7 @@ func TestCreateTimestampFile(t *testing.T) {
defer os.RemoveAll(realDir)
timestampFilePath := filepath.Join(realDir, TIMESTAMP_FILE_NAME)
if err := CreateTimestampFile(realDir); err != nil {
- t.Error("Unexpected error: %s", err)
+ t.Errorf("Unexpected error: %s", err)
}
// Assert timestamp file exists.
if _, err := os.Stat(timestampFilePath); err != nil {
@@ -67,7 +67,7 @@ func TestCreateTimestampFile(t *testing.T) {
t.Errorf("Unexpected error: %s", err)
}
if _, err := strconv.ParseInt(string(fileContent), 10, 64); err != nil {
- t.Error("Unexpected value in %s: %s", timestampFilePath, err)
+ t.Errorf("Unexpected value in %s: %s", timestampFilePath, err)
}
// Assert error returned when specified dir does not exist.
« no previous file with comments | « ct/go/util/gs.go ('k') | go/gitinfo/gitinfo.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698