|
@@ -311,12 +311,12 @@ TEST(testLogin, Negative) {
|
|
|
EXPECT_EQ(retvalCmd.msg["pass"].asString(), "paswod");
|
|
|
EXPECT_FALSE(retvalCmd.msg["cancel"].asBool());
|
|
|
|
|
|
- EXPECT_EQ(retvalHdl.type, CmdMan::error);
|
|
|
+ EXPECT_EQ(retvalHdl.type, CmdMan::error | CmdMan::close);
|
|
|
EXPECT_EQ(retvalHdl.msg["command"].asString(), "login");
|
|
|
EXPECT_FALSE(retvalHdl.msg["accept"].asBool());
|
|
|
EXPECT_THAT(retvalHdl.msg["error"].asString(), testing::HasSubstr("fancy error string"));
|
|
|
|
|
|
- EXPECT_TRUE(cm.isVersionChecked());
|
|
|
+ EXPECT_TRUE(cm.isNotConnected());
|
|
|
}
|
|
|
|
|
|
TEST(testLogin, TooFewArgs) {
|