mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-17 23:50:13 +01:00
fix(deps): update ginkgo import path to v2 in test files
This commit is contained in:
parent
6d901a7442
commit
a9642a2dcc
23 changed files with 116 additions and 157 deletions
|
|
@ -6,12 +6,12 @@ import (
|
|||
"net/http/httptest"
|
||||
"testing"
|
||||
|
||||
. "github.com/onsi/ginkgo"
|
||||
. "github.com/onsi/ginkgo/v2"
|
||||
. "github.com/onsi/gomega"
|
||||
)
|
||||
|
||||
const (
|
||||
token = "123123123"
|
||||
token = "123123123"
|
||||
)
|
||||
|
||||
func TestAPI(t *testing.T) {
|
||||
|
|
@ -51,7 +51,7 @@ var _ = Describe("API", func() {
|
|||
|
||||
rec := httptest.NewRecorder()
|
||||
req := httptest.NewRequest("GET", "/hello", nil)
|
||||
req.Header.Set("Authorization", "Bearer " + token)
|
||||
req.Header.Set("Authorization", "Bearer "+token)
|
||||
|
||||
handlerFunc(rec, req)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue