]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/base64: fix test for ReadFull change
authorRuss Cox <rsc@golang.org>
Thu, 31 Jan 2013 22:42:56 +0000 (14:42 -0800)
committerRuss Cox <rsc@golang.org>
Thu, 31 Jan 2013 22:42:56 +0000 (14:42 -0800)
R=golang-dev
CC=golang-dev
https://golang.org/cl/7249045

src/pkg/encoding/base64/base64_test.go

index f9b863c364c90a75033f388b648b809f5c40ff32..2166abd7ac85adb07b066c5326e11169db1c6862 100644 (file)
@@ -257,6 +257,7 @@ func TestDecoderIssue3577(t *testing.T) {
        wantErr := errors.New("my error")
        next <- nextRead{5, nil}
        next <- nextRead{10, wantErr}
+       next <- nextRead{0, wantErr}
        d := NewDecoder(StdEncoding, &faultInjectReader{
                source: "VHdhcyBicmlsbGlnLCBhbmQgdGhlIHNsaXRoeSB0b3Zlcw==", // twas brillig...
                nextc:  next,