|
|
|
@ -52,7 +52,7 @@ func TestClientsReusingKeys(t *testing.T) {
|
|
|
|
hi.BackendLogID = "go-test-only"
|
|
|
|
hi.BackendLogID = "go-test-only"
|
|
|
|
c1, err := NewDirect(Options{
|
|
|
|
c1, err := NewDirect(Options{
|
|
|
|
ServerURL: httpsrv.URL,
|
|
|
|
ServerURL: httpsrv.URL,
|
|
|
|
HTTPC: httpsrv.Client(),
|
|
|
|
HTTPTestClient: httpsrv.Client(),
|
|
|
|
//TimeNow: s.control.TimeNow,
|
|
|
|
//TimeNow: s.control.TimeNow,
|
|
|
|
Logf: func(fmt string, args ...interface{}) {
|
|
|
|
Logf: func(fmt string, args ...interface{}) {
|
|
|
|
t.Helper()
|
|
|
|
t.Helper()
|
|
|
|
@ -93,7 +93,7 @@ func TestClientsReusingKeys(t *testing.T) {
|
|
|
|
|
|
|
|
|
|
|
|
c2, err := NewDirect(Options{
|
|
|
|
c2, err := NewDirect(Options{
|
|
|
|
ServerURL: httpsrv.URL,
|
|
|
|
ServerURL: httpsrv.URL,
|
|
|
|
HTTPC: httpsrv.Client(),
|
|
|
|
HTTPTestClient: httpsrv.Client(),
|
|
|
|
Logf: func(fmt string, args ...interface{}) {
|
|
|
|
Logf: func(fmt string, args ...interface{}) {
|
|
|
|
t.Helper()
|
|
|
|
t.Helper()
|
|
|
|
t.Logf("c2: "+fmt, args...)
|
|
|
|
t.Logf("c2: "+fmt, args...)
|
|
|
|
@ -160,7 +160,7 @@ func TestClientsReusingOldKey(t *testing.T) {
|
|
|
|
genOpts := func() Options {
|
|
|
|
genOpts := func() Options {
|
|
|
|
return Options{
|
|
|
|
return Options{
|
|
|
|
ServerURL: httpsrv.URL,
|
|
|
|
ServerURL: httpsrv.URL,
|
|
|
|
HTTPC: httpc,
|
|
|
|
HTTPTestClient: httpc,
|
|
|
|
//TimeNow: s.control.TimeNow,
|
|
|
|
//TimeNow: s.control.TimeNow,
|
|
|
|
Logf: func(fmt string, args ...interface{}) {
|
|
|
|
Logf: func(fmt string, args ...interface{}) {
|
|
|
|
t.Helper()
|
|
|
|
t.Helper()
|
|
|
|
|