make imapserver faster like before again

in the precis password change before the previous release, the password used in
fuzzing wasn't correct, triggering sleeps due to botched protocols often, which
made the tests run much longer.
This commit is contained in:
Mechiel Lukkien 2024-04-14 17:41:36 +02:00
parent 12e6975aa7
commit 11eaa8cd1a
No known key found for this signature in database

View file

@ -137,9 +137,9 @@ func FuzzServer(f *testing.F) {
// Each command brings the connection state one step further. We try the fuzzing // Each command brings the connection state one step further. We try the fuzzing
// input for each state. // input for each state.
run([]string{}) run([]string{})
run([]string{"login mjl@mox.example testtest"}) run([]string{`login mjl@mox.example "` + password0 + `"`})
run([]string{"login mjl@mox.example testtest", "select inbox"}) run([]string{`login mjl@mox.example "` + password0 + `"`, "select inbox"})
xappend := fmt.Sprintf("append inbox () {%d+}\r\n%s", len(exampleMsg), exampleMsg) xappend := fmt.Sprintf("append inbox () {%d+}\r\n%s", len(exampleMsg), exampleMsg)
run([]string{"login mjl@mox.example testtest", "select inbox", xappend}) run([]string{`login mjl@mox.example "` + password0 + `"`, "select inbox", xappend})
}) })
} }