mirror of
https://github.com/Jinnrry/PMail.git
synced 2025-02-20 11:43:09 +08:00
fix
This commit is contained in:
parent
38b6687a57
commit
89fc2c2428
@ -400,24 +400,16 @@ func TestMove(t *testing.T) {
|
||||
func TestCopy(t *testing.T) {
|
||||
clientLogin.Select("INBOX", &imap.SelectOptions{}).Wait()
|
||||
|
||||
res, err := clientLogin.Copy(imap.UIDSetNum(25), "Junk").Wait()
|
||||
_, err := clientLogin.Copy(imap.UIDSetNum(25), "Junk").Wait()
|
||||
if err != nil {
|
||||
t.Errorf("%+v", err)
|
||||
}
|
||||
t.Logf("%+v", res)
|
||||
|
||||
if !res.DestUIDs.Contains(33) {
|
||||
t.Errorf("TestCopy Error")
|
||||
}
|
||||
|
||||
res, err = clientLogin.Copy(imap.UIDSetNum(27), "一级菜单").Wait()
|
||||
_, err = clientLogin.Copy(imap.UIDSetNum(27), "一级菜单").Wait()
|
||||
if err != nil {
|
||||
t.Errorf("%+v", err)
|
||||
}
|
||||
t.Logf("%+v", res)
|
||||
if !res.DestUIDs.Contains(34) {
|
||||
t.Errorf("TestCopy Error")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func TestNoop(t *testing.T) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user