File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
pkg/domainproxy/integration Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments