Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tc-wiremock-v3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ func TestV3Auth(t *testing.T) {
}
}

func sendTestRequest(t *testing.T, req *http.Request) (int, string, error) {
func sendTestRequest(t testing.TB, req *http.Request) (int, string, error) {
t.Helper()

resp, err := http.DefaultClient.Do(req)
Expand Down
4 changes: 2 additions & 2 deletions tc-wiremock.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func RunContainer(ctx context.Context, opts ...testcontainers.ContainerCustomize
}

// Creates an instance of the WireMockContainer type that is automatically terminated upon test completion
func RunContainerAndStopOnCleanup(ctx context.Context, t *testing.T, opts ...testcontainers.ContainerCustomizer) (*WireMockContainer, error) {
func RunContainerAndStopOnCleanup(ctx context.Context, t testing.TB, opts ...testcontainers.ContainerCustomizer) (*WireMockContainer, error) {
container, err := RunContainer(ctx, opts...)
if err != nil {
t.Fatal(err)
Expand All @@ -84,7 +84,7 @@ func RunContainerAndStopOnCleanup(ctx context.Context, t *testing.T, opts ...tes
}

// Creates a default instance of the WireMockContainer type that is automatically terminated upon test completion
func RunDefaultContainerAndStopOnCleanup(ctx context.Context, t *testing.T) (*WireMockContainer, error) {
func RunDefaultContainerAndStopOnCleanup(ctx context.Context, t testing.TB) (*WireMockContainer, error) {
var emptyCustomizers []testcontainers.ContainerCustomizer
return RunContainerAndStopOnCleanup(ctx, t, emptyCustomizers...)
}
Expand Down