lib/ur: Send unreported failures on shutdown (#7164)

This commit is contained in:
Simon Frei
2020-12-22 20:17:14 +01:00
committed by GitHub
parent 4bcc38cf63
commit a20a5f61f0
21 changed files with 296 additions and 206 deletions
+4 -4
View File
@@ -17,8 +17,8 @@ import (
"github.com/syncthing/syncthing/lib/db/backend"
"github.com/syncthing/syncthing/lib/events"
"github.com/syncthing/syncthing/lib/protocol"
"github.com/syncthing/syncthing/lib/svcutil"
"github.com/syncthing/syncthing/lib/tlsutil"
"github.com/syncthing/syncthing/lib/util"
)
func tempCfgFilename(t *testing.T) string {
@@ -90,7 +90,7 @@ func TestStartupFail(t *testing.T) {
}
done := make(chan struct{})
var waitE util.ExitStatus
var waitE svcutil.ExitStatus
go func() {
waitE = app.Wait()
close(done)
@@ -102,8 +102,8 @@ func TestStartupFail(t *testing.T) {
case <-done:
}
if waitE != util.ExitError {
t.Errorf("Got exit status %v, expected %v", waitE, util.ExitError)
if waitE != svcutil.ExitError {
t.Errorf("Got exit status %v, expected %v", waitE, svcutil.ExitError)
}
if err = app.Error(); err != startErr {