Skip to content

Commit 52bf022

Browse files
committed
NO-JIRA: adjust HttpWaitStrategy path in codeserver.spec.ts because after package updates 302 is no longer a success (opendatahub-io#1201)
``` ❯ curl -vvvv http://localhost:35929/ * Host localhost:35929 was resolved. * IPv6: ::1 * IPv4: 127.0.0.1 * Trying [::1]:35929... * Connected to localhost (::1) port 35929 > GET / HTTP/1.1 > Host: localhost:35929 > User-Agent: curl/8.7.1 > Accept: */* > * Request completely sent off < HTTP/1.1 302 Found < Location: ./?folder=/opt/app-root/src < Vary: Accept, Accept-Encoding < Content-Type: text/plain; charset=utf-8 < Content-Length: 49 < Date: Thu, 26 Jun 2025 18:18:11 GMT < Connection: keep-alive < Keep-Alive: timeout=5 < * Connection #0 to host localhost left intact Found. Redirecting to ./?folder=/opt/app-root/src ```
1 parent 0e95139 commit 52bf022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/browser/tests/codeserver.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const test = base.extend<MyFixtures>({
4343
})()
4444
const container = await new GenericContainer(image)
4545
.withExposedPorts(8787)
46-
.withWaitStrategy(new HttpWaitStrategy('/', 8787, {abortOnContainerExit: true}))
46+
.withWaitStrategy(new HttpWaitStrategy('/?folder=/opt/app-root/src', 8787, {abortOnContainerExit: true}))
4747
.start();
4848
await use(new CodeServer(page, `http://${container.getHost()}:${container.getMappedPort(8787)}`))
4949
await container.stop()

0 commit comments

Comments
 (0)