Commit d4db653c authored by Stan Hu's avatar Stan Hu

Simplify test payload

parent 1263f2c5
......@@ -26,13 +26,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 TestRunUploadPack(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