mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-15 17:42:41 +02:00
add code to auto-update the version tag in the server + tests
This commit is contained in:
@ -6,6 +6,7 @@ import (
|
||||
"os"
|
||||
"os/exec"
|
||||
"path"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
@ -75,6 +76,9 @@ func RunTestServer(t *testing.T) func() {
|
||||
if err != nil {
|
||||
t.Fatalf("failed to kill process: %v", err)
|
||||
}
|
||||
if strings.Contains(stderr.String()+stdout.String(), "failed to") {
|
||||
t.Fatalf("server failed to do something: stderr=%#v, stdout=%#v", stderr.String(), stdout.String())
|
||||
}
|
||||
fmt.Printf("stderr=%#v, stdout=%#v\n", stderr.String(), stdout.String())
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user