nit
diff --git a/go/pkg/cas/upload.go b/go/pkg/cas/upload.go index 1621cfd..0e9fbdb 100644 --- a/go/pkg/cas/upload.go +++ b/go/pkg/cas/upload.go
@@ -71,7 +71,7 @@ // The relPath is relative to UploadInput.Path. Use "." for the digest of the // UploadInput.Path itself. // -// Digest is safe to call only after the channel returned by DigestComputed() +// Digest is safe to call only after the channel returned by DigestsComputed() // is closed. // // If the digest is unknown, returns (nil, err), where err is ErrDigestUnknown
diff --git a/go/pkg/cas/upload_test.go b/go/pkg/cas/upload_test.go index 48f2869..5f00718 100644 --- a/go/pkg/cas/upload_test.go +++ b/go/pkg/cas/upload_test.go
@@ -324,8 +324,8 @@ select { case <-in.DigestsComputed(): // Good - case <-time.After(time.Millisecond): - t.Errorf("Upload succeeded, but DigestComputed() is closed") + case <-time.After(time.Second): + t.Errorf("Upload succeeded, but DigestsComputed() is not closed") } wantDigests := map[string]digest.Digest{