Skip to content

Commit afa1d36

Browse files
committed
Fixed a panic in one of the tests
1 parent f4e3f9c commit afa1d36

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

handler_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ package httpsign
33
import (
44
"bytes"
55
"fmt"
6-
"github.com/stretchr/testify/assert"
76
"io"
87
"log"
98
"net/http"
109
"net/http/httptest"
1110
"strings"
1211
"testing"
12+
13+
"github.com/stretchr/testify/assert"
1314
)
1415

1516
func Test_WrapHandler(t *testing.T) {
@@ -62,7 +63,7 @@ func TestWrapHandlerServerSigns(t *testing.T) {
6263
// Callback to let the server locate its signing key and configuration
6364
var signConfig *SignConfig
6465
if !earlyExpires {
65-
signConfig = nil
66+
signConfig = NewSignConfig()
6667
} else {
6768
signConfig = NewSignConfig().SetExpires(2000)
6869
}

0 commit comments

Comments
 (0)