match other tests

This commit is contained in:
Meghan Denny 2021-12-29 21:45:32 -08:00
parent 54d8f3273c
commit b99c13ceef

View File

@ -151,7 +151,9 @@ fn waitNoError(process: *std.ChildProcess) !void {
test "Open file, ask for semantic tokens" {
var server = try Server.start(initialize_msg, null);
defer server.shutdown();
// FIXME: The last `server.request` below results in the server pipe being broken
// causing this shutdown to trigger `SIGPIPE`
// defer server.shutdown();
try server.request("textDocument/didOpen",
\\{"textDocument":{"uri":"file://./tests/test.zig","languageId":"zig","version":420,"text":"const std = @import(\"std\");"}}
@ -165,7 +167,9 @@ test "Open file, ask for semantic tokens" {
test "Request completion in an empty file" {
var server = try Server.start(initialize_msg, null);
defer server.shutdown();
// FIXME: The last `server.request` below results in the server pipe being broken
// causing this shutdown to trigger `SIGPIPE`
// defer server.shutdown();
try server.request("textDocument/didOpen",
\\{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"file:///test.zig","languageId":"zig","version":420,"text":""}}}
@ -177,7 +181,6 @@ test "Request completion in an empty file" {
test "Request completion with no trailing whitespace" {
var server = try Server.start(initialize_msg, null);
// FIXME: The last `server.request` below results in the server pipe being broken
// causing this shutdown to trigger `SIGPIPE`
//defer server.shutdown();
@ -195,7 +198,6 @@ test "Request completion with no trailing whitespace" {
test "Encoded space in file name and usingnamespace on non-existing symbol" {
var server = try Server.start(initialize_msg, null);
// FIXME: The last `server.request` below results in the server pipe being broken
// causing this shutdown to trigger `SIGPIPE`
//defer server.shutdown();
@ -212,7 +214,6 @@ test "Encoded space in file name and usingnamespace on non-existing symbol" {
test "Self-referential definition" {
var server = try Server.start(initialize_msg, null);
// FIXME: The last `server.request` below results in the server pipe being broken
// causing this shutdown to trigger `SIGPIPE`
//defer server.shutdown();
@ -228,7 +229,6 @@ test "Self-referential definition" {
}
test "Missing return type" {
var server = try Server.start(initialize_msg, null);
// FIXME: The last `server.request` below results in the server pipe being broken
// causing this shutdown to trigger `SIGPIPE`
//defer server.shutdown();
@ -245,7 +245,6 @@ test "Missing return type" {
test "Pointer and optional deref" {
var server = try Server.start(initialize_msg, null);
// FIXME: The last `server.request` below results in the server pipe being broken
// causing this shutdown to trigger `SIGPIPE`
//defer server.shutdown();
@ -280,4 +279,3 @@ test "Request utf-8 offset encoding" {
// \\{"isIncomplete":false,"items":[]}
// );
// }