|
@@ -1794,8 +1794,8 @@ TEST(testList, Negative_ListEmpty) {
|
|
|
cmd = "list";
|
|
|
args = {};
|
|
|
root["command"] = "list";
|
|
|
- root["accept"] = false;
|
|
|
- root["error"] = "no chunks to send";
|
|
|
+ root["accept"] = true;
|
|
|
+ root["items"] = 0;
|
|
|
|
|
|
// stick into cmdman and check things
|
|
|
EXPECT_CALL(fm, openList).WillOnce(testing::Return(true));
|
|
@@ -1804,13 +1804,13 @@ TEST(testList, Negative_ListEmpty) {
|
|
|
EXPECT_EQ(retvalCmd.type, CmdMan::send);
|
|
|
EXPECT_EQ(retvalCmd.msg["command"].asString(), "list");
|
|
|
|
|
|
- EXPECT_CALL(fm, cancelList);
|
|
|
+ EXPECT_CALL(fm, closeList);
|
|
|
retvalHdl = cm.handle(root);
|
|
|
|
|
|
- EXPECT_EQ(retvalHdl.type, CmdMan::error);
|
|
|
+ EXPECT_EQ(retvalHdl.type, CmdMan::print);
|
|
|
EXPECT_EQ(retvalHdl.msg["command"].asString(), "list");
|
|
|
EXPECT_FALSE(retvalHdl.msg["accept"].asBool());
|
|
|
- EXPECT_THAT(retvalHdl.msg["error"].asString(), testing::HasSubstr("no chunks to send"));
|
|
|
+ EXPECT_THAT(retvalHdl.msg["error"].asString(), testing::HasSubstr("There are no files stored on the server."));
|
|
|
|
|
|
EXPECT_TRUE(cm.isLoggedIn());
|
|
|
}
|