Skip to content

Commit 05426cb

Browse files
committed
Enable interrupt test
1 parent 011ee21 commit 05426cb

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

MODULE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ bazel_dep(name = "googletest", version = "1.15.2", repo_name = "com_google_googl
1212
# Coroutines
1313
http_archive(
1414
name = "coroutines",
15-
integrity = "sha256-PhOYq1eE8Q8UOhzDHq2+rafTU4VTt9fZ0ZZyNE+hWb4=",
16-
strip_prefix = "co-2.1.0",
17-
urls = ["https://github.com/dallison/co/archive/refs/tags/2.1.0.tar.gz"],
15+
integrity = "sha256-WHOHPCyNXNoS8tgZOmqZiAerhqvppk1XzpD8NgrsFLQ=",
16+
strip_prefix = "co-2.1.3",
17+
urls = ["https://github.com/dallison/co/archive/refs/tags/2.1.3.tar.gz"],
1818
)
1919
# For local debugging of co coroutine library.
2020
# bazel_dep(name = "coroutines")

toolbelt/sockets_test.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ TEST(SocketsTest, BigTCPSocketBlocking) {
283283
Receiver.join();
284284
}
285285

286-
#if 0
287286
TEST(SocketsTest, TCPSocketInterrupt) {
288287
// TODO(dave.allison): is there a way to pick an unused port?
289288
toolbelt::InetAddress addr("127.0.0.1", 6502);
@@ -301,7 +300,7 @@ TEST(SocketsTest, TCPSocketInterrupt) {
301300
absl::StatusOr<toolbelt::TCPSocket> s = listener.Accept(c);
302301
ASSERT_FALSE(s.ok());
303302
},
304-
{.interrrupt_fd = scheduler.GetInterruptFd()});
303+
co::CoroutineOptions{.name = "foo", .interrupt_fd = scheduler.GetInterruptFd()});
305304

306305
co::Coroutine interrupt(scheduler, [](co::Coroutine* c) {
307306
c->Yield();
@@ -310,7 +309,6 @@ TEST(SocketsTest, TCPSocketInterrupt) {
310309

311310
scheduler.Run();
312311
}
313-
#endif
314312

315313
TEST(SocketsTest, TCPSocket2) {
316314
// TODO(dave.allison): is there a way to pick an unused port?

0 commit comments

Comments
 (0)