Skip to content

Commit 0561fb6

Browse files
committed
Address PR comments.
1 parent fbb3b65 commit 0561fb6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkg/domainproxy/integration/domainproxy_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ func TestDomainProxy(t *testing.T) {
7474
}
7575
// HTTP Get stub
7676
pom, err := os.ReadFile("testdata/bar-1.0.pom")
77+
if err != nil {
78+
t.Fatal(err)
79+
}
7780
err = container.Client.StubFor(
7881
wiremock.Get(wiremock.URLEqualTo("/com/foo/bar/1.0/bar-1.0.pom")).
7982
WillReturnResponse(
@@ -113,7 +116,13 @@ func TestDomainProxy(t *testing.T) {
113116
defer domainProxyClient.Stop()
114117
// Get Wiremock container details
115118
mappedHttpPort, err := container.MappedPort(ctx, WireMockHttpPort)
119+
if err != nil {
120+
t.Fatal(err)
121+
}
116122
mappedHttpsPort, err := container.MappedPort(ctx, WireMockHttpsPort)
123+
if err != nil {
124+
t.Fatal(err)
125+
}
117126
wireMockHttpUrl := "http://" + Localhost + ":" + mappedHttpPort.Port()
118127
wireMockHttpsUrl := "https://" + Localhost + ":" + mappedHttpsPort.Port()
119128
// Create HTTP client

0 commit comments

Comments
 (0)