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 { ...@@ -26,13 +26,7 @@ func fakeExecCommand(command string, args ...string) *exec.Cmd {
} }
func createTestPayload() []byte { func createTestPayload() []byte {
data := make([]byte, expectedBytes) return bytes.Repeat([]byte{'0'}, expectedBytes)
for i := 0; i < expectedBytes; i++ {
data[i] = '0'
}
return data
} }
func TestRunUploadPack(t *testing.T) { 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