From 11eaa8cd1a9ecd48ef560299fb74222196ae0f07 Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Sun, 14 Apr 2024 17:41:36 +0200 Subject: [PATCH] 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. --- imapserver/fuzz_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/imapserver/fuzz_test.go b/imapserver/fuzz_test.go index cc86d15..fe57563 100644 --- a/imapserver/fuzz_test.go +++ b/imapserver/fuzz_test.go @@ -137,9 +137,9 @@ func FuzzServer(f *testing.F) { // Each command brings the connection state one step further. We try the fuzzing // input for each state. run([]string{}) - run([]string{"login mjl@mox.example testtest"}) - run([]string{"login mjl@mox.example testtest", "select inbox"}) + run([]string{`login mjl@mox.example "` + password0 + `"`}) + run([]string{`login mjl@mox.example "` + password0 + `"`, "select inbox"}) 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}) }) }