mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-31 09:20:21 +00:00
Skip 3 tests on windows
This commit is contained in:
parent
53bccc4f23
commit
e32470ae5a
@ -169,6 +169,9 @@ struct LinkLayerTest : public test::LlarpTest< NoOpCrypto >
|
||||
|
||||
TEST_F(LinkLayerTest, TestUTPAliceRenegWithBob)
|
||||
{
|
||||
#ifdef WIN32
|
||||
GTEST_SKIP();
|
||||
#else
|
||||
Alice.link = utp::NewServer(
|
||||
Alice.encryptionKey,
|
||||
[&]() -> const RouterContact& { return Alice.GetRC(); },
|
||||
@ -211,7 +214,7 @@ TEST_F(LinkLayerTest, TestUTPAliceRenegWithBob)
|
||||
DiscardMessage discard;
|
||||
if(!discard.BEncode(&otherBuf))
|
||||
return false;
|
||||
otherBuf.sz = otherBuf.cur - otherBuf.base;
|
||||
otherBuf.sz = otherBuf.cur - otherBuf.base;
|
||||
otherBuf.cur = otherBuf.base;
|
||||
return s->SendMessageBuffer(otherBuf);
|
||||
};
|
||||
@ -253,10 +256,14 @@ TEST_F(LinkLayerTest, TestUTPAliceRenegWithBob)
|
||||
RunMainloop();
|
||||
ASSERT_TRUE(Bob.gotLIM);
|
||||
ASSERT_TRUE(success);
|
||||
#endif
|
||||
}
|
||||
|
||||
TEST_F(LinkLayerTest, TestUTPAliceConnectToBob)
|
||||
{
|
||||
#ifdef WIN32
|
||||
GTEST_SKIP();
|
||||
#else
|
||||
Alice.link = utp::NewServer(
|
||||
Alice.encryptionKey,
|
||||
[&]() -> const RouterContact& { return Alice.GetRC(); },
|
||||
@ -318,7 +325,7 @@ TEST_F(LinkLayerTest, TestUTPAliceConnectToBob)
|
||||
DiscardMessage discard;
|
||||
if(!discard.BEncode(&otherBuf))
|
||||
return;
|
||||
otherBuf.sz = otherBuf.cur - otherBuf.base;
|
||||
otherBuf.sz = otherBuf.cur - otherBuf.base;
|
||||
otherBuf.cur = otherBuf.base;
|
||||
self->SendMessageBuffer(otherBuf);
|
||||
}});
|
||||
@ -339,4 +346,5 @@ TEST_F(LinkLayerTest, TestUTPAliceConnectToBob)
|
||||
RunMainloop();
|
||||
ASSERT_TRUE(Bob.gotLIM);
|
||||
ASSERT_TRUE(success);
|
||||
#endif
|
||||
}
|
||||
|
@ -182,6 +182,9 @@ struct AbyssTest : public AbyssTestBase,
|
||||
|
||||
TEST_F(AbyssTest, TestClientAndServer)
|
||||
{
|
||||
#ifdef WIN32
|
||||
GTEST_SKIP();
|
||||
#else
|
||||
Start();
|
||||
QueueRPC(method, nlohmann::json::object(),
|
||||
std::bind(&AbyssTest::NewConn, this, std::placeholders::_1));
|
||||
@ -189,4 +192,5 @@ TEST_F(AbyssTest, TestClientAndServer)
|
||||
AsyncFlush();
|
||||
RunLoop();
|
||||
ASSERT_TRUE(called);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user