cmd/age: deflake TestScript and update testscript

This commit is contained in:
Filippo Valsorda
2023-01-02 13:31:28 +01:00
parent edf7388f77
commit 8e3f74c283
3 changed files with 8 additions and 6 deletions

View File

@@ -43,6 +43,8 @@ func TestMain(m *testing.M) {
scanner.Scan() // body
os.Stdout.WriteString("-> recipient-stanza 0 test\n")
os.Stdout.WriteString(fileKey + "\n")
scanner.Scan() // ok
scanner.Scan() // body
os.Stdout.WriteString("-> done\n\n")
return 0
case "--age-plugin=identity-v1":
@@ -56,6 +58,8 @@ func TestMain(m *testing.M) {
scanner.Scan() // body
os.Stdout.WriteString("-> file-key 0\n")
os.Stdout.WriteString(fileKey + "\n")
scanner.Scan() // ok
scanner.Scan() // body
os.Stdout.WriteString("-> done\n\n")
return 0
default: