Skip to content

Commit 8af49d7

Browse files
committed
fix build break introduced by API proxy change
1 parent e705dfd commit 8af49d7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

endpoints-framework/src/test/java/com/google/api/server/spi/EndpointsServletTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,7 @@ public void proxy() throws IOException {
137137
servlet.service(req, resp);
138138

139139
assertThat(resp.getStatus()).isEqualTo(HttpServletResponse.SC_OK);
140-
assertThat(resp.getContentAsString()).contains("/_ah/api");
141-
assertThat(resp.getContentAsString()).contains("https://apis.google.com/js/googleapis.proxy.js");
140+
assertThat(resp.getContentAsString()).contains("googleapis.server.init()");
142141
}
143142

144143
@Test

endpoints-framework/src/test/java/com/google/api/server/spi/handlers/ApiProxyHandlerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ private void testWithServletPath(String servletPath) throws Exception {
5151

5252
handler.handle(context);
5353

54-
assertThat(response.getContentAsString()).contains(servletPath);
54+
assertThat(response.getContentAsString()).contains("googleapis.server.init()");
5555
}
5656
}

0 commit comments

Comments
 (0)