Skip to content

Commit fcebcca

Browse files
committed
Test against a mocked server
Environment variables can be used to test against a real deployment. I now just check if the file is executable rather than trying to actually execute it since we would need to actually compile something that can run as a .exe on Windows.
1 parent edf950b commit fcebcca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/groovy/CoderCLIManagerTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class CoderCLIManagerTest extends spock.lang.Specification {
2626
srv.createContext("/", new HttpHandler() {
2727
void handle(HttpExchange exchange) {
2828
int code = HttpURLConnection.HTTP_OK
29-
byte[] response = "!#/bin/sh\r\necho Coder".getBytes()
29+
byte[] response = "#!/bin/sh\r\necho Coder".getBytes()
3030
int length = response.length
3131

3232
String[] etags = exchange.requestHeaders.get("If-None-Match")

0 commit comments

Comments
 (0)