Commit 0f137cf6 authored by Stan Hu's avatar Stan Hu

Simplify test payload

parent 37389823
......@@ -28,13 +28,7 @@ func fakeExecCommand(command string, args ...string) *exec.Cmd {
}
func createTestPayload() []byte {
data := make([]byte, expectedBytes)
for i := 0; i < expectedBytes; i++ {
data[i] = '0'
}
return data
return bytes.Repeat([]byte{'0'}, expectedBytes)
}
func TestHandleUploadPack(t *testing.T) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment