51e4d056cc8116a1588887371c2c9d065f34d798

Author
Kieran Klukas <kieran@dunkirk.sh>
Committer
Kieran Klukas <kieran@dunkirk.sh>
Date

Message

test: fix the user deletion test on Windows

On Windows the test checks that stopping the server printed nothing to
stderr, but it still saw the expected error from the step before. Run
a harmless command first to clear it, as the other tests do.

💘 Generated with Crush

Assisted-by: Crush:claude-opus-5-5

Diff

 1diff --git a/testscript/testdata/user-delete-owner.txtar b/testscript/testdata/user-delete-owner.txtar
 2index b3b8d586ea31cf46d92a574d4e9a122074b3f605..f7f6508e8e7d986d078bc9e67c07552b6d3205da 100644
 3--- a/testscript/testdata/user-delete-owner.txtar
 4+++ b/testscript/testdata/user-delete-owner.txtar
 5@@ -18,6 +18,8 @@ soft repo delete foo-repo
 6 soft user delete foo
 7 ! soft user info foo
 8 stderr '.*not found.*'
 9+# a placeholder to reset stderr
10+soft help
11 
12 # stop the server
13 [windows] stopserver