rename filename that is invalid for the go module proxy

not found: create zip: testdata/importtest.maildir/cur/1642966915.1.mox:2,: malformed file path "testdata/importtest.maildir/cur/1642966915.1.mox:2,": invalid char ':'
This commit is contained in:
Mechiel Lukkien 2023-01-30 14:38:55 +01:00
parent cb229cb6cf
commit 7076dd199b
No known key found for this signature in database
3 changed files with 1 additions and 0 deletions

View file

@ -43,6 +43,7 @@ func TestMaildirReader(t *testing.T) {
createTemp := func(pattern string) (*os.File, error) {
return os.CreateTemp("", pattern)
}
// todo: rename 1642966915.1.mox to "1642966915.1.mox:2,"? cannot have that name in the git repo because go module (or the proxy) doesn't like it. could also add some flags and test they survive the import.
newf, err := os.Open("testdata/importtest.maildir/new")
if err != nil {
t.Fatalf("open maildir new: %v", err)