Merge branch '7888-log-req-phase-times' refs #7888
[arvados.git] / services / keepstore / keepstore_test.go
index 8682e23f56d82061d013b52b6cf916a233127591..8a004b73d44913b562574170b21b19dc780b8ff2 100644 (file)
@@ -26,6 +26,10 @@ var TestHash3 = "eed29bbffbc2dbe5e5ee0bb71888e61f"
 // It must not match any test hashes.
 var BadBlock = []byte("The magic words are squeamish ossifrage.")
 
+// Empty block
+var EmptyHash = "d41d8cd98f00b204e9800998ecf8427e"
+var EmptyBlock = []byte("")
+
 // TODO(twp): Tests still to be written
 //
 //   * TestPutBlockFull
@@ -181,7 +185,7 @@ func TestPutBlockMD5Fail(t *testing.T) {
        // Check that PutBlock returns the expected error when the hash does
        // not match the block.
        if _, err := PutBlock(BadBlock, TestHash); err != RequestHashError {
-               t.Error("Expected RequestHashError, got %v", err)
+               t.Errorf("Expected RequestHashError, got %v", err)
        }
 
        // Confirm that GetBlock fails to return anything.