From: Jeff Halter Date: Mon, 29 Apr 2024 20:17:28 +0000 (-0700) Subject: Fix test X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/commitdiff_plain/84f3e842cefd5d56bfad299c9592d836dc13059a?hp=4a88189f30efac3cd86159b88c1a316a610e1523 Fix test --- diff --git a/hotline/transaction_handlers_test.go b/hotline/transaction_handlers_test.go index 89ee9fc..b03e3b1 100644 --- a/hotline/transaction_handlers_test.go +++ b/hotline/transaction_handlers_test.go @@ -768,7 +768,6 @@ func TestHandleGetFileInfo(t *testing.T) { NewField(FieldFileName, []byte("testfile.txt")), NewField(FieldFileTypeString, []byte("Text File")), NewField(FieldFileCreatorString, []byte("ttxt")), - NewField(FieldFileComment, []byte{}), NewField(FieldFileType, []byte("TEXT")), NewField(FieldFileCreateDate, make([]byte, 8)), NewField(FieldFileModifyDate, make([]byte, 8)), @@ -791,8 +790,8 @@ func TestHandleGetFileInfo(t *testing.T) { // Clear the fileWrapper timestamp fields to work around problems running the tests in multiple timezones // TODO: revisit how to test this by mocking the stat calls + gotRes[0].Fields[4].Data = make([]byte, 8) gotRes[0].Fields[5].Data = make([]byte, 8) - gotRes[0].Fields[6].Data = make([]byte, 8) if !assert.Equal(t, tt.wantRes, gotRes) { t.Errorf("HandleGetFileInfo() gotRes = %v, want %v", gotRes, tt.wantRes) }