-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to fix some flaky tests by adding more flushes. Upgrade linter to v1.51.1 and fix reported issues.
- Loading branch information
1 parent
3b1b90f
commit be34573
Showing
5 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,13 +50,15 @@ func TestExistsUpdatesInSeparateMailboxes(t *testing.T) { | |
} | ||
|
||
func TestFetchUpdates(t *testing.T) { | ||
runManyToOneTestWithAuth(t, defaultServerOptions(t), []int{1, 2}, func(c map[int]*testConnection, _ *testSession) { | ||
runManyToOneTestWithAuth(t, defaultServerOptions(t), []int{1, 2}, func(c map[int]*testConnection, s *testSession) { | ||
c[1].doAppend(`INBOX`, `To: [email protected]`, `\Seen`).expect("OK") | ||
|
||
// First client selects in INBOX to receive FETCH update. | ||
c[1].C("A006 select INBOX") | ||
c[1].Se("A006 OK [READ-WRITE] SELECT") | ||
|
||
s.flush("user") | ||
|
||
// Second client selects in INBOX and then sets some flags to generate a FETCH update. | ||
c[2].C("b006 select INBOX") | ||
c[2].Se("b006 OK [READ-WRITE] SELECT") | ||
|
@@ -65,6 +67,8 @@ func TestFetchUpdates(t *testing.T) { | |
c[2].S(`* 1 FETCH (FLAGS (\Deleted \Seen))`) | ||
c[2].Sx("B007 OK .*") | ||
|
||
s.flush("user") | ||
|
||
// First client receives the FETCH update. | ||
c[1].C("c001 noop") | ||
c[1].S(`* 1 FETCH (FLAGS (\Deleted \Recent \Seen))`) | ||
|