Skip to content

Commit 6049a39

Browse files
committed
tests: replaced stretchr/testify by go-openapi/testify
Signed-off-by: Frederic BIDON <[email protected]>
1 parent 3802129 commit 6049a39

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+146
-146
lines changed

authinfo_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"testing"
88

99
"github.com/go-openapi/strfmt"
10-
"github.com/stretchr/testify/assert"
11-
"github.com/stretchr/testify/require"
10+
"github.com/go-openapi/testify/v2/assert"
11+
"github.com/go-openapi/testify/v2/require"
1212
)
1313

1414
func TestAuthInfoWriter(t *testing.T) {

bytestream_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
"sync/atomic"
1313
"testing"
1414

15-
"github.com/stretchr/testify/assert"
16-
"github.com/stretchr/testify/require"
15+
"github.com/go-openapi/testify/v2/assert"
16+
"github.com/go-openapi/testify/v2/require"
1717
)
1818

1919
func TestByteStreamConsumer(t *testing.T) {

client-middleware/opentracing/opentracing_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414
"github.com/opentracing/opentracing-go"
1515
"github.com/opentracing/opentracing-go/ext"
1616
"github.com/opentracing/opentracing-go/mocktracer"
17-
"github.com/stretchr/testify/assert"
18-
"github.com/stretchr/testify/require"
17+
"github.com/go-openapi/testify/v2/assert"
18+
"github.com/go-openapi/testify/v2/require"
1919

2020
"github.com/go-openapi/runtime"
2121
)

client/auth_info_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"net/http"
88
"testing"
99

10-
"github.com/stretchr/testify/assert"
11-
"github.com/stretchr/testify/require"
10+
"github.com/go-openapi/testify/v2/assert"
11+
"github.com/go-openapi/testify/v2/require"
1212

1313
"github.com/go-openapi/runtime"
1414
)

client/keepalive_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"io"
99
"testing"
1010

11-
"github.com/stretchr/testify/assert"
12-
"github.com/stretchr/testify/require"
11+
"github.com/go-openapi/testify/v2/assert"
12+
"github.com/go-openapi/testify/v2/require"
1313
)
1414

1515
func newCountingReader(rdr io.Reader, readOnce bool) *countingReadCloser {

client/opentelemetry_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"testing"
1010

1111
"github.com/go-openapi/runtime"
12-
"github.com/stretchr/testify/assert"
13-
"github.com/stretchr/testify/require"
12+
"github.com/go-openapi/testify/v2/assert"
13+
"github.com/go-openapi/testify/v2/require"
1414
"go.opentelemetry.io/otel"
1515
"go.opentelemetry.io/otel/attribute"
1616
"go.opentelemetry.io/otel/codes"

client/request_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import (
2020
"testing"
2121

2222
"github.com/go-openapi/strfmt"
23-
"github.com/stretchr/testify/assert"
24-
"github.com/stretchr/testify/require"
23+
"github.com/go-openapi/testify/v2/assert"
24+
"github.com/go-openapi/testify/v2/require"
2525

2626
"github.com/go-openapi/runtime"
2727
)

client/response_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"net/http"
1010
"testing"
1111

12-
"github.com/stretchr/testify/assert"
12+
"github.com/go-openapi/testify/v2/assert"
1313

1414
"github.com/go-openapi/runtime"
1515
)

client/runtime_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import (
2020

2121
"github.com/go-openapi/runtime"
2222
"github.com/go-openapi/strfmt"
23-
"github.com/stretchr/testify/assert"
24-
"github.com/stretchr/testify/require"
23+
"github.com/go-openapi/testify/v2/assert"
24+
"github.com/go-openapi/testify/v2/require"
2525
)
2626

2727
const (

client/runtime_tls_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121

2222
"github.com/go-openapi/runtime"
2323
"github.com/go-openapi/strfmt"
24-
"github.com/stretchr/testify/assert"
25-
"github.com/stretchr/testify/require"
24+
"github.com/go-openapi/testify/v2/assert"
25+
"github.com/go-openapi/testify/v2/require"
2626
)
2727

2828
func TestRuntimeTLSOptions(t *testing.T) {

0 commit comments

Comments
 (0)