Skip to content

Commit 5e55558

Browse files
committed
Fix SockJsServiceTests
See gh-29594
1 parent eee50d3 commit 5e55558

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spring-websocket/src/test/java/org/springframework/web/socket/sockjs/support/SockJsServiceTests.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -238,15 +238,15 @@ public void handleIframeRequest() throws IOException {
238238
resetResponseAndHandleRequest("GET", "/echo/iframe.html", HttpStatus.OK);
239239

240240
assertThat(this.servletResponse.getContentType()).isEqualTo("text/html;charset=UTF-8");
241-
assertThat(this.servletResponse.getContentAsString().startsWith("<!DOCTYPE html>\n")).isTrue();
242-
assertThat(this.servletResponse.getContentLength()).isEqualTo(490);
241+
assertThat(this.servletResponse.getContentAsString()).startsWith("<!DOCTYPE html>\n");
242+
assertThat(this.servletResponse.getContentLength()).isEqualTo(521);
243243
assertThat(this.response.getHeaders().getCacheControl()).isEqualTo("no-store, no-cache, must-revalidate, max-age=0");
244-
assertThat(this.response.getHeaders().getETag()).isEqualTo("\"0096cbd37f2a5218c33bb0826a7c74cbf\"");
244+
assertThat(this.response.getHeaders().getETag()).isEqualTo("\"0172bf7bc7472c0cc35c02f883e779485\"");
245245
}
246246

247247
@Test
248248
public void handleIframeRequestNotModified() {
249-
this.servletRequest.addHeader("If-None-Match", "\"0096cbd37f2a5218c33bb0826a7c74cbf\"");
249+
this.servletRequest.addHeader("If-None-Match", "\"0172bf7bc7472c0cc35c02f883e779485\"");
250250
resetResponseAndHandleRequest("GET", "/echo/iframe.html", HttpStatus.NOT_MODIFIED);
251251
}
252252

0 commit comments

Comments
 (0)