Skip to content

Commit

Permalink
Fix a test for API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
olsaarik committed Sep 12, 2023
1 parent cc08b23 commit 75a15a0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/unit/core_tests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ TEST_F(LocalCommunicatorTest, RegisterMemory) {
TEST_F(LocalCommunicatorTest, SendMemoryToSelf) {
int dummy[42];
auto memory = comm->registerMemory(&dummy, sizeof(dummy), mscclpp::NoTransports);
comm->sendMemoryOnSetup(memory, 0, 0);
auto memoryFuture = comm->recvMemoryOnSetup(0, 0);
comm->setup();
comm->sendMemory(memory, 0, 0);
auto memoryFuture = comm->recvMemory(0, 0);
auto sameMemory = memoryFuture.get();
EXPECT_EQ(sameMemory.data(), memory.data());
EXPECT_EQ(sameMemory.size(), memory.size());
Expand Down

0 comments on commit 75a15a0

Please sign in to comment.