Make Result.Error a string

This commit is contained in:
Tomás Senart
2013-09-10 21:46:28 +01:00
parent 972fe6925d
commit 6348a1b7df
5 changed files with 13 additions and 14 deletions

View File

@@ -9,9 +9,9 @@ import (
func TestEncoding(t *testing.T) {
results := Results{
Result{200, time.Now(), 100 * time.Millisecond, 10, 30, nil},
Result{200, time.Now(), 20 * time.Millisecond, 20, 20, nil},
Result{200, time.Now(), 30 * time.Millisecond, 30, 10, nil},
Result{200, time.Now(), 100 * time.Millisecond, 10, 30, ""},
Result{200, time.Now(), 20 * time.Millisecond, 20, 20, ""},
Result{200, time.Now(), 30 * time.Millisecond, 30, 10, ""},
}
buffer := &bytes.Buffer{}