Merge pull request #12386 from jamesbeyond/unittest-fix

TEST: fix a bug in ATCmdParser test
pull/12405/head
Martin Kojtal 2020-02-10 13:17:51 +00:00 committed by GitHub
commit da7c641f17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -345,7 +345,7 @@ TEST_F(test_ATCmdParser, test_ATCmdParser_recv)
expected_oob_callback = true;
at1.oob("s", &urc_callback);
EXPECT_TRUE(at1.recv("%c %d %x %s\r\n%c %d %x %s\r\n", &c, &intval, &hexval, &text));
EXPECT_TRUE(at1.recv("%c %d %x %s\r\n%c %d %x %s\r\n", &c, &intval, &hexval, &text, &c, &intval, &hexval, &text));
expected_oob_callback = false;
EXPECT_EQ(c, 't');
EXPECT_EQ(intval, 2);