]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/transfer_test.go
Account for the root
[rbdr/mobius] / hotline / transfer_test.go
index 481e273acbbdbce0131ca52c3862a6f08ae2ad9e..4aa142b08889bb32768b23501cf0fd49cb079f81 100644 (file)
@@ -122,16 +122,13 @@ func Test_receiveFile(t *testing.T) {
                                                FlatFileHeader: FlatFileHeader{
                                                        Format:    [4]byte{0x46, 0x49, 0x4c, 0x50}, // "FILP"
                                                        Version:   [2]byte{0, 1},
-                                                       RSVD:      [16]byte{},
                                                        ForkCount: [2]byte{0, 2},
                                                },
                                                FlatFileInformationForkHeader: FlatFileForkHeader{},
-                                               FlatFileInformationFork:       NewFlatFileInformationFork("testfile.txt", make([]byte, 8), "TEXT", "TEXT"),
+                                               FlatFileInformationFork:       NewFlatFileInformationFork("testfile.txt", [8]byte{}, "TEXT", "TEXT"),
                                                FlatFileDataForkHeader: FlatFileForkHeader{
-                                                       ForkType:        [4]byte{0x4d, 0x41, 0x43, 0x52}, // DATA
-                                                       CompressionType: [4]byte{0, 0, 0, 0},
-                                                       RSVD:            [4]byte{0, 0, 0, 0},
-                                                       DataSize:        [4]byte{0x00, 0x00, 0x00, 0x03},
+                                                       ForkType: [4]byte{0x4d, 0x41, 0x43, 0x52}, // DATA
+                                                       DataSize: [4]byte{0x00, 0x00, 0x00, 0x03},
                                                },
                                        }
                                        fakeFileData := []byte{1, 2, 3}