mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 16:33:47 +03:00
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:
parent
cb229cb6cf
commit
7076dd199b
3 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@ func TestMaildirReader(t *testing.T) {
|
||||||
createTemp := func(pattern string) (*os.File, error) {
|
createTemp := func(pattern string) (*os.File, error) {
|
||||||
return os.CreateTemp("", pattern)
|
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")
|
newf, err := os.Open("testdata/importtest.maildir/new")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("open maildir new: %v", err)
|
t.Fatalf("open maildir new: %v", err)
|
||||||
|
|
Loading…
Reference in a new issue