Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2024-01-21 09:14:17 +08:00
parent 53b94abc2f
commit 13f0f77eaf
No known key found for this signature in database

View File

@ -3,6 +3,7 @@ package main
import (
"bytes"
"io"
"log"
"os"
"reflect"
"strings"
@ -991,6 +992,10 @@ func TestCommandWithIPv6(t *testing.T) {
Writer: &buffer,
}
assert.Nil(t, plugin.Exec())
err := plugin.Exec()
if err != nil {
log.Printf("%#v", err)
}
assert.Nil(t, err)
assert.Equal(t, unindent(expected), unindent(buffer.String()))
}