fix write test

Change-Id: I9a9c1947024518e551a8eba3b7b0d6c08deb3516
This commit is contained in:
Brad Fitzpatrick 2012-03-14 10:58:05 -07:00
parent 93ec5aa9a8
commit 32dab2e9ea
1 changed files with 3 additions and 2 deletions

View File

@ -134,8 +134,9 @@ type write struct {
data []byte
}
func (w *write) Write(data []byte, intr Intr) Error {
w.data = append(w.data, data...)
func (w *write) Write(req *WriteRequest, resp *WriteResponse, intr Intr) Error {
w.data = append(w.data, req.Data...)
resp.Size = len(req.Data)
return nil
}