GreenMail 1.5.9 allows empty SEARCH

This commit is contained in:
Jon Gjengset 2018-11-28 09:51:45 -05:00
parent 1b086d40de
commit 6d158e7eb5
No known key found for this signature in database
GPG key ID: D64AC9D67176DC71
2 changed files with 7 additions and 9 deletions

View file

@ -12,8 +12,8 @@ if: type != push OR (tag IS blank AND branch = master)
before_script:
- if [[ "$TRAVIS_BUILD_STAGE_NAME" == "Integration" || "$TRAVIS_BUILD_STAGE_NAME" == "Coverage" ]]; then
docker pull greenmail/standalone:1.5.8 &&
docker run -d -e GREENMAIL_OPTS='-Dgreenmail.setup.test.all -Dgreenmail.hostname=0.0.0.0 -Dgreenmail.auth.disabled -Dgreenmail.verbose' -p 3025:3025 -p 3110:3110 -p 3143:3143 -p 3465:3465 -p 3993:3993 -p 3995:3995 greenmail/standalone:1.5.8;
docker pull greenmail/standalone:1.5.9 &&
docker run -d -e GREENMAIL_OPTS='-Dgreenmail.setup.test.all -Dgreenmail.hostname=0.0.0.0 -Dgreenmail.auth.disabled -Dgreenmail.verbose' -p 3025:3025 -p 3110:3110 -p 3143:3143 -p 3465:3465 -p 3993:3993 -p 3995:3995 greenmail/standalone:1.5.9;
fi
# an entry in stage=test will be generated for each rust/os combination.

View file

@ -70,7 +70,7 @@ fn logout() {
#[test]
#[ignore]
fn inbox_zero() {
// https://github.com/djc/tokio-imap/issues/34
// https://github.com/greenmail-mail-test/greenmail/issues/265
let mut s = session("readonly-test@localhost");
s.select("INBOX").unwrap();
let inbox = s.search("ALL").unwrap();
@ -141,9 +141,8 @@ fn inbox() {
c.expunge().unwrap();
// the e-mail should be gone now
// TODO: https://github.com/djc/tokio-imap/issues/34
// let inbox = c.search("ALL").unwrap();
// assert_eq!(inbox.len(), 0);
let inbox = c.search("ALL").unwrap();
assert_eq!(inbox.len(), 0);
}
#[test]
@ -199,9 +198,8 @@ fn inbox_uid() {
c.expunge().unwrap();
// the e-mail should be gone now
// TODO: https://github.com/djc/tokio-imap/issues/34
// let inbox = c.search("ALL").unwrap();
// assert_eq!(inbox.len(), 0);
let inbox = c.search("ALL").unwrap();
assert_eq!(inbox.len(), 0);
}
#[test]