We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4e3f9c commit afa1d36Copy full SHA for afa1d36
handler_test.go
@@ -3,13 +3,14 @@ package httpsign
3
import (
4
"bytes"
5
"fmt"
6
- "github.com/stretchr/testify/assert"
7
"io"
8
"log"
9
"net/http"
10
"net/http/httptest"
11
"strings"
12
"testing"
+
13
+ "github.com/stretchr/testify/assert"
14
)
15
16
func Test_WrapHandler(t *testing.T) {
@@ -62,7 +63,7 @@ func TestWrapHandlerServerSigns(t *testing.T) {
62
63
// Callback to let the server locate its signing key and configuration
64
var signConfig *SignConfig
65
if !earlyExpires {
- signConfig = nil
66
+ signConfig = NewSignConfig()
67
} else {
68
signConfig = NewSignConfig().SetExpires(2000)
69
}
0 commit comments