add delay to test auth server

This commit is contained in:
Umputun
2018-05-14 14:54:32 -05:00
parent 0964cbd973
commit e3449c7eaa
+2
View File
@@ -8,6 +8,7 @@ import (
"net/http"
"strings"
"testing"
"time"
"github.com/gorilla/sessions"
"github.com/stretchr/testify/assert"
@@ -128,6 +129,7 @@ func mockProvider(t *testing.T, sessStore sessions.Store, loginPort, authPort in
go oauth.ListenAndServe()
go ts.ListenAndServe()
time.Sleep(time.Millisecond * 100) // let the start
return provider, ts, oauth
}